hi how can I stop my script if it can't find the bitmap after 60 seconds?
Code: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;


Reply With Quote













