GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • WaspLib documentation

This view

  • Original page
  • New address

GeezerVison is showing docs.waspscripts.com — InterfaceArea

InterfaceArea¶

Interface area is the area where MainScreen interfaces can occupy.


EInterfaceType enum¶

EInterfaceType = enum(CLASSIC, PAPER, ANY);

Enum representing the types of MainScreen interfaces.


TInterfaceArea type¶

Type responsible to handle thefor handling general MainScreen interfaces.


MSInterface.IsOpen¶

function TInterfaceArea.IsOpen(typ: EInterfaceType = EInterfaceType.ANY): Boolean;

Returns True/False if any interface is found open.


MSInterface.WaitOpen¶

function TInterfaceArea.WaitOpen(
  typ: EInterfaceType = EInterfaceType.ANY;
  time: Integer = TICK;
  interval: Integer = -1
): Boolean;

Returns True/False if any interface is found open within time milliseconds.


MSInterface.GetCloseButton¶

function TInterfaceArea.GetCloseButton(): TBox;

Returns a TBox of the close button.

Example:
```pascal
{$I WaspLib/main.simba}
begin
  ShowOnTarget(MSInterface.GetCloseButton());
end.

MSInterface.Close¶

function TInterfaceArea.Close(escape: Boolean): Boolean; function TInterfaceArea.Close(escapeProbability: Single = -1): Boolean; overload;

Attempts to close any interface currently open, depending on `escape` or
`escapeProbability the function will either click the button or press escape key.

Example:
```pascal
WriteLn MSInterface.Close();

MSInterface variable¶

Global TInterfaceArea type variable.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.