To use Variables x and y as i saw :
SCAR Code:
program New;
{.include SRL/SRL.Scar}
var
x,y: Integer;
begin
setupsrl;
wait (5000)
MMouse(x,y, 288, -37);//here
wait(1000+random(50));
Mouse(x,y, 288, -37, true);//here
wait(3000+random(1000))
end.
You must define x and y.
For example , here it would be :
SCAR Code:
program New;
{.include SRL/SRL.Scar}
var
x,y: Integer;
begin
SetupSRL;
If FindColor(x,y,ColorOfTheStopButton,BX,BY,BXX,BYY) then //BX,BY,BXX,BYY stand for BetweenX,Y,XX,YY...
begin
Wait (5000)
MMouse(x,y, 288, -37);
Wait(1000+random(50));
Mouse(x,y, 288, -37, true);
Wait(3000+random(1000));//You forgot the semicolon here
end;
end.
That way it compiles even though i'm quite sure it won't click the button because of the randomisation being big...
Thanks.