Yoko
http://forum.yoko.com.ua/

wait for menu
http://forum.yoko.com.ua/viewtopic.php?f=20&t=12444
Page 1 of 1

Author:  zars [ 2007-09-13 18:39:43 ]
Post subject:  wait for menu

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?!

Author:  ruff [ 2007-09-13 22:50:09 ]
Post subject: 

try to use checklag function. you will find it in sticky topics.

Author:  zars [ 2007-09-14 00:01:02 ]
Post subject: 

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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/