Yoko

All sides of Injection
It is currently 2025-12-26 01:45:07

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: wait for menu
PostPosted: 2007-09-13 18:39:43 
Offline

Joined: 2004-11-22 13:20:06
Posts: 9
Code:

repeat
UO.DeleteJournal()
   UO.UseType('0x1BEF') ; ingot
   wait(1000)
   uo.LClick(487,455)    ; make last button
while NOT UO.InJournal('You put') AND NOT UO.InJournal('failed')
wait(500)
wend



sometimes i have lags and in 1 sec menu dont open and macros stop, because menu dont in time open. i dont want put there much more than 1 sec, bet find a way to get some alternative way how to wait for menu? OR some like that [or time+200<uo.Timer() ] but this work only in UNTIL?


please help?!

_________________
sorry for my bed english


Top
   
 Post subject:
PostPosted: 2007-09-13 22:50:09 
Offline
User avatar

Joined: 2004-06-26 15:36:11
Posts: 46
Location: Praha
try to use checklag function. you will find it in sticky topics.


Top
   
 Post subject:
PostPosted: 2007-09-14 00:01:02 
Offline

Joined: 2004-11-22 13:20:06
Posts: 9
Code:

repeat
UO.DeleteJournal()
   UO.UseType('0x1BEF') ; ingot
   CheckLag() 
   uo.LClick(487,455)    ; make last button
while NOT UO.InJournal('You put') AND NOT UO.InJournal('failed')
wait(500)
wend

sub CheckLag()
if uo.Waiting()>0 then
uo.Exec('canceltarget')
end if
uo.DeleteJournal()
uo.Click('backpack')
repeat
wait(50)
until uo.InJournal('backpack')
end sub


hmmm all work. thank you

_________________
sorry for my bed english


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited