XPBar Menu¶
Methods to interact with the XPBar Menu interface.
TXPBarMenu type¶
Main record to interact with the XPBar Menu interface.
XPBarMenu.IsOpen¶
function TXPBarMenu.IsOpen(): Boolean;
Returns true if the xpbar menu is open.
Example:
WriteLn XPBarMenu.IsOpen();
XPBarMenu.WaitOpen¶
function TXPBarMenu.WaitOpen(
time: Integer = TICK; interval: Integer = -1
): Boolean;
Returns true if the xpbar menu opens within time milliseconds..
Example:
WriteLn XPBarMenu.WaitOpen();
XPBarMenu.Open¶
function TXPBarMenu.Open(): Boolean;
Attempts to open the XPBar menu and returns true on success.
Example:
WriteLn XPBarMenu.Open();
XPBarMenu.Close¶
function TXPBarMenu.Close(escape: Boolean): Boolean;
function TXPBarMenu.Close(escapeProbability: Single = 0): Boolean; overload;
Closes the XPBar menu, depending on escape or `escapeProbability the function
will either click the button or press escape key.
Example:
WriteLn XPBarMenu.Close();
XPBarMenu.Fix¶
function TXPBarMenu.Fix(attempts: Integer = 3): Boolean;
Attempts to fix the XPBar menu with the expected settings.
Example:
WriteLn XPBarMenu.Fix();
XPBarMenu variable¶
Global TXPBarMenu type variable.