minilogger11
2012-10-05 17:56:23
hi how can I stop my script if it can't find the bitmap after 60 seconds?
Writeln('SCANNING FOR START BUTTON');
z := FindBitmap(startButton, startX, startY);
while (z = false) do
begin
wait(1000);
Writeln('SCANNING FOR START BUTTON');
z := FindBitmap(startButton, startX, startY);
i:=i+1;
if (i=60) then
begin
Writeln('START BUTTON NOT FOUND');
//stop script????
end;
end;