CargoHold¶
Methods to interact with the cargo hold interface.
TCargoHold type¶
Main record to interact with the CargoHold interface.
CargoHold.FindCargoBoundaries¶
function TCargoHold.FindCargoBoundaries(): TBoxArray;
Finds item boundaries and returns them as a TBoxArray.
CargoHold.FindToolBoundaries¶
function TCargoHold.FindToolBoundaries(): TBoxArray;
Finds item boundaries and returns them as a TBoxArray.
CargoHold.SetupInterface¶
procedure TCargoHold.SetupInterface();
Internal method used to setup the TCargoHold coordinates. This is automatically called for you on the CargoHold variable.
CargoHold.IsOpen¶
function TCargoHold.IsOpen(): Boolean;
Returns true if the CargoHold pin is open.
Example:
WriteLn CargoHold.IsOpen();
CargoHold.WaitOpen¶
function TCargoHold.WaitOpen(time: Integer = 600; interval: Integer = -1): Boolean;
Returns true if the CargoHold pin opens within time milliseconds..
Example:
WriteLn CargoHold.WaitOpen();
CargoHold.Close¶
function TCargoHold.Close(escape: Boolean): Boolean;
function TCargoHold.Close(escapeProbability: Single = 0): Boolean; overload;
Closes the CargoHold, depending on escape or `escapeProbability the function
will either click the button or press escape key.
Example:
WriteLn CargoHold.Close();
CargoHold variable¶
Global TCargoHold variable.