icode
2013-08-08 09:28:47
Ok, I have started scripting recently and I have currently only written a scripts for a few private servers.
I am trying to write a script to do the gnome agility course on a private server. I have started, as you can see, to write the first procedure which would be crossing the balance log.
The script compiles:
But it won't actually click the log. My target is the webclient and it should work, but I cannot see why it won't actually click.
I am trying to write a script to do the gnome agility course on a private server. I have started, as you can see, to write the first procedure which would be crossing the balance log.
The script compiles:
Compiled successfully in 360 ms.
SRL Compiled in 0 msec
Successfully executed.But it won't actually click the log. My target is the webclient and it should work, but I cannot see why it won't actually click.
program CrisisXAgility;
{$i srl/srl.simba}
Procedure ClickLogBalance;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 872066, 294, 172, 400, 480, 1) or
FindColorTolerance(X, Y, 868459, 324, 171, 400, 480, 1)
then
begin
mmouse(x, y,1,1);
wait(250);
ClickMouse(X, Y, mouse_Left)
end;
end;
Begin
SetupSRL;
MouseSpeed := 15;
ClickLogBalance;
end.