hey im quite new to scripting and i need to know how to use the find object function can some one help me please?
hey im quite new to scripting and i need to know how to use the find object function can some one help me please?
PLM'S Rimmington Yew Cutter And Banker,Worked: 4hour 54min
Here:
Examples:function FindObj(var cx, cy: Integer; Text: String; color, tolerance: Integer): Boolean;
function FindObjCustom(var cx, cy: Integer; Text: TStringArray; Color: TIntegerArray; tolerance : integer) : boolean;
SCAR Code:FindObj(x, y, 'ttack', 123456, 5);
FindObjCustom(x, y, ['ttack', 'hicken'], [12345, 54321], 5);
You can addy many colors/texts to TArray as you want...
and be sure to declare variables...
Example
x and y must be declared as integers in beginning of procedure or script
SCAR Code:var x, y : integer;
EDIT:
Example how to make procedure to find something and click on it
SCAR Code:procedure example;
var x, y : integer;
begin
if FindObj(x, y, 'ttack', 123456, 5) then
begin
Mouse(x, y, 0, 0, True);
{and here add rest off stuff like random event finding, gas or ent finding etc...}
end;
end;
[CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]
There are currently 1 users browsing this thread. (0 members and 1 guests)