Hi,
i was making this scar script but somehow it wouldn't repeat, or stop repeating after a couple of times.
SCAR Code:
program Test;
var
x,y: Integer;
const
green= 65280;
begin
Wait(2000+random(3000));
repeat
Writeln('1');
ClickMouse(94, 243,true);
Writeln('2');
Wait(1000+random(30000));
Writeln('3');
until(FindColor(x,y,green,889, 340,952, 463));
Writeln('4');
end.
I added the writeln to find out where it stops and this is what the log shows:
Code:
Successfully compiled (83 ms)
1
2
3
1
2
3
1
2
3
1
2
Successfully executed
So it repeats a couple of times but then it just stops, why does it stop?
Can someone help me with this.