Did'nt used tracking on RunUO, sorry...
Maybe, alternative method of gump-handling will help (in fact - this is old good clicking method :) )
Code:
sub WaitMenuEx(category,number)
uo.deletejournal()
uo.SetGlobal("category",category)
uo.SetGlobal("number",str(number))
uo.exec("exec uoWaitMenuEx")
end sub
sub uoWaitMenuEx()
var category = uo.GetGlobal("category"),number = val(uo.GetGlobal("number"))
uo.SetGlobal("WaitMenu","1")
while not uo.injournal("of type 0xC7D4E47C")
wait(100)
wend
if category == "categories" and number > -1 and number < 11 then
uo.lclick(70,110+18*number)
endif
if category == "selections" and number > -1 then
while number > 9
number = number - 9
uo.lclick(423,311)
wait(300)
wend
uo.lclick(275,110 + 18*number)
endif
if category == "special" and number < 8 and number > -1 then
if IsOdd(number) then
uo.lclick(70,395+18*number/2)
else
uo.lclick(325,395+18*(number-1)/2)
endif
endif
end sub
sub IsOdd(num)
var i = num
i = int(i/2)
i = i*2
if i == num then
return 1
endif
return 0
end sub
example:
Code:
sub MakeLastEx()
var mustuse = 1
while 1
if uo.injournal("have worn") then
mustuse = 1
endif
WaitMenuEx("special",7)
wait(500)
if mustuse then
uo.useobject("_OLH")
mustuse = 0
endif
while not uo.injournal("of type 0xC7D4E47C choiced") and not uo.injournal("you have worn out")
wait(100)
wend
wend
end sub
This method will work, because click happening right after gump appears, and gump always appears in focus (on top of all other gumps)
Maybe you should change gump's type in "of type 0xC7D4E47C ..."