zluo
2012-07-09 18:11:54
if you stick wait in front of finddtm(asdfasdf) then it will wait for it right? you could also do waitfindbitmap or waitfindcolorspiraltolerance right?
2012-07-09 18:11:54
2012-07-09 18:17:00
repeat
Finddtm(blahblahblah);
until(finddtm(blahblahblah));
2012-07-09 18:18:55
t: integer;
begin
marktime(t);
while(not(finddtm()))do
begin
wait(50+random(100));
if(timefrommark(t)>1800)then
break;
end;
end.
2012-07-09 18:28:26
function WaitFindDTM(WaitTime: Integer; var x, y: Integer; DTM: Integer, {more parameters}): Boolean;
var
t: Integer;
begin
Result := False;
MarkTime(t);
while not Result and (TimeFromMark(t) < WaitTime) do
begin
Result := FindDTM(x, y, DTM, {more parameters});
Wait(200+Random(100));
// Antiban/Whatever ...
end;
end;
if WaitFindDTM(2000, x, y, DTM, {more parameters}) then
// ...