View Full Version : waitfind....
if you stick wait in front of finddtm(asdfasdf) then it will wait for it right? you could also do waitfindbitmap or waitfindcolorspiraltolerance right?
Footy
07-09-2012, 10:17 PM
I believe there would be a function for it in the SRL include. if not, heres a way to do it
repeat
Finddtm(blahblahblah);
until(finddtm(blahblahblah));
x[Warrior]x3500
07-09-2012, 10:18 PM
t: integer;
begin
marktime(t);
while(not(finddtm()))do
begin
wait(50+random(100));
if(timefrommark(t)>1800)then
break;
end;
end.
Runaway
07-09-2012, 10:28 PM
Another alternative for ya:
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;
And called like this:
if WaitFindDTM(2000, x, y, DTM, {more parameters}) then
// ...
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.