Failure
2011-12-03 04:13:40
Hello there again, I've been reading some things about it, but I can't figure it out…
So what I want is, like this.
But it still keeps it in an infinite loop.
Could anyone help me out with this? Cause I want it, if it waited 'X Amount of seconds' it moves on.
So what I want is, like this.
Begin
Repeat
Wait(50);
Until FindColorTolerance(x, y, 100, 658, 186, 658, 186, 5) or (Time = 5);
End;But it still keeps it in an infinite loop.
program New;
{$i SRL/SRL.scar}
var x,y:Integer;
var Time:Integer;
var StartTime:Integer;
begin
//Setups
SetupSRL;
StartTime:= GetSystemTime;
Time := (GetSystemTime-StartTime);
Begin
Repeat
Wait(50);
Until FindColorTolerance(x, y, 100, 658, 186, 658, 186, 5) or (Time = 5);
End;Could anyone help me out with this? Cause I want it, if it waited 'X Amount of seconds' it moves on.