SilverScreen

Methods to interact with the silver screen on a furnace.


SilverScreen.IsOpen

function TSilverScreen.IsOpen(): Boolean;
function TSilverScreen.IsOpen(waitTime: Int32): Boolean;

Returns true if the silver crafting screen is visible. You can optionally specify a waitTime.

Example:

if SilverScreen.IsOpen() then
  SilverScreen.ClickItem('Unstrung symbol', -1);

SilverScreen.Close

function TSilverScreen.Close(PressEscape: Boolean = False): Boolean;

Closes the silver crafting screen. Depending on PressEscape the function will either click the button or press backspace.

Example:

if SilverScreen.Close() then
  Writeln('Closed the silver crafting screen');

SilverScreen.SetQuantity

function TSilverScreen.SetQuantity(Amount: Int32): Boolean;

Sets the interface quantity to the set amount. Acceptable parameters include 1,5,10,X (custom amount) and -1 for ‘All’.

Example:

SilverScreen.SetQuantity(-1);

SilverScreen.CanCraftItem

function TSilverScreen.CanCraftItem(Item: TItem; out ItemBox: TBox): Boolean;

Returns if the given TItem can be crafted. If so then a TBox of the disired item is returned.

Example:

if SilverScreen.CanCraftItem('Topaz bracelet', ItmBox) then
  Mouse.Move(ItmBox);

SilverScreen.IsItemHighlighted

function TSilverScreen.IsItemHighlighted(Item: TItem): Boolean;

Returns if the given TItem is highlighted on the silver crafting interface.

Example:

if SilverScreen.IsItemHighlighted('Unstrun symbol') then
  Keyboard.PressKey(VK_SPACE);

SilverScreen.CraftItem

function TSilverScreen.CraftItem(Item: TItem; Quantity: Int32; UseSpaceBar: Boolean=False): Boolean;

Sets the desired quantity then crafts on the given TItem on the silver screen interface. If the item is highlighted (previously crafted) and UseSpaceBar is set to true, then the spacebar is used, if not then the interface item is clicked. Returns false if ‘Item’ is not found on the interface.

Example:

if SilverScreen.CraftItem('Jade amulet (u)', 10) then
  Writeln('Beginning crafting...');

var SilverScreen

Global SilverScreen variable.