• Log in or sign up for an account here: https://www.sythe.org/login

Script Help

figgmand

Newcomer
Joined
Oct 29, 2009
Sythe Gold
0
Messages
2
i need help for a script that will use smooth mouse movement to click on a red block on a screen,
i want it to click the red block, the red block moves around the screen so it needs to be able to find the red block and click on it, maybe a 2-5 second delay inbetween

i have this so far but i need it to click once its on the red block and then repeat it



program New;
{.Include SRL/SRL.Scar}

Var
X, Y: Integer;
TB : TBox;

Begin
SetupSRL;
ActivateClient;
Wait(999);
GetClientDimensions(TB.x2, TB.y2);
If FindColorTolerance(x, y, 255, TB.x1, TB.y1, TB.x2, TB.y2, 15) Then
MMouse(X, Y, 0, 0);

End.
 
program New;
{.Include SRL/SRL.Scar}

Var
i,X, Y: Integer;
TB : TBox;

const
times=100;//change this number to how many times u want to find the color
//and click :P

Begin
SetupSRL;
ActivateClient;
Wait(999);
GetClientDimensions(TB.x2, TB.y2);
repeat
If FindColorTolerance(x, y, 255, TB.x1, TB.y1, TB.x2, TB.y2, 15) Then
begin
Mouse(X, Y, 0, 0,true);
wait(2000+random(3000));
inc(i);
end;
wait(100);
until(i=times);
End.

enjoy
 
Runescape Gamblingrunescape gambling
Back
Top