Log in

View Full Version : doing 2 things



zluo
05-11-2012, 05:26 AM
i currently have this lil thing.

repeat
wait(1);
if (TimeFromMark(Timer) > 5000 + random(1000)) then KeyUp(38) and break;
until (FindBitmap(........);

so basically, i want this timer to reach 5000 + random 1000 ms, then keyup(38) and then following it, a break. it doesnt compile correctly and i dont know how to do it. help plz

Total
05-11-2012, 05:31 AM
repeat
wait(1);
if (TimeFromMark(Timer) > 5000 + random(1000)) then
begin
KeyUp(38);
Break;
end;
until (FindBitmap(........);


Is that what you want?

zluo
05-11-2012, 08:04 AM
holy crap lol didnt think it would be that simple. thanks