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.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.