SRL Archive - General

help wit mousemovement


del_signo

2006-07-09 01:09:46

here is my script
program new;
var x,y: integer;
begin
repeat
If(FindColortolerance(x,y,880239,0,0,550,345,2))then
begin
HoldMouse(x,y,false)
Wait(1000+random(25))
Releasemouse(x,y,false)
end;
begin
[B]HoldMouse(X-40,Y-60,true[/B]
Wait(1000+random(25))
Releasemouse(x,y,true)
end;
wait(30000);
until(false)
end.
the area in bold is the problem instead of going -40,-60 it goes to -40,60 witch is a big problem can some1 help me

WhiteShadow

2006-07-09 01:32:19

Have another if(condition)then for this area.

[PHP] HoldMouse(X-40,Y-60,true
Wait(1000+random(25))
Releasemouse(x,y,true)[/PHP]