SCAR Code:function waituntil(what: boolean;milliseconds: integer): boolean;
var i: integer;
begin
i:=0;
repeat
i:=i+1;
begin
wait(1);
end;
until(what = true) or (i=milliseconds);
result:=true;
end;
ok this will wait until something happens for exampleSCAR Code:begin
waituntil(findcolor(x,y,23423,1,1,700,700),1000)
the second part of it is how many milliseconds to wait in total before giving up




Reply With Quote


