Tool Screen¶
The toolscreen file holds functions and procedures that are used in the runescape toolscreen.
The source for this file can be found here.
Consts, Types, Vars¶
The following constants, types and variables are used throughout the toolScreen methods.
type TRSToolScreen
type
TRSToolScreen = type TRSInterface;
A type that stores the toolScreen interface properties.
var toolScreen
var
toolScreen: TRSToolScreen;
A variable through which scripters can access the TRSToolScreen type methods.
TRSToolScreen methods¶
The following methods should be called through the toolScreen variable.
Example:
if toolScreen.isOpen() then
writeln('Tool screen is open!');
isOpen¶
function TRSToolScreen.isOpen(waitTime: integer = 0): boolean;
Returns true if the toolScreen interface is open. The optional waitTime parameter (default = 0) is the maximum time (in milliseconds) it will keep looking.
Note
- by footballjds
- Last Updated: 4 November 2014 by The Mayor
Example:
if toolScreen.isOpen() then
writeln('The toolScreen is open!');
select¶
function TRSToolScreen.select(tool: string; key: boolean = true): boolean;
Returns true if it selects the tool tool . If the key parameter is set to true (default = true) then it will press the corresponding key, else it will use the mouse.
Note
- by footballjds
- Last Updated: 17 December 2014 by akarigar
Example:
if toolScreen.select('Knife') then
writeln('We started making something!');
select (overload)¶
function TRSToolScreen.select(tool: integer): boolean; overload;
Returns true if it selects the tool tool . This is the same as the above method except the tool parameter takes an integer instead of a string.
Note
- by akarigar
- Last Updated: 17 December 2014 by akarigar
Example:
if toolScreen.select(1) then
writeln('We started making something!');