Code:
sub Solve()
var code = ""
var line = ""
var i = 0
if not uo.LastGump('replyed') then
if uo.LastGump('text', 0) == 'Anti Macro' then
uo.LClick(3, val(Left(uo.LastGump('button', 0), 3)))
repeat
wait(1000)
until uo.LastGump('replyed', 0)
return 1
else
if uo.LastGump('text', 1) == 'Digite os numeros abaixo:' then
line = uo.LastGump('text', 2)
for i = 0 to int(len(line)/3)-1
code = code+line[2+i*3]
next
uo.Say(code)
wait(1000)
line = Right(uo.LastGump('button', 0), 7)
uo.LClick(val(Left(line, 3)), val(Right(line, 3)))
repeat
wait(1000)
until uo.LastGump('replyed', 0)
return 2
end if
end if
endif
end sub
If first gump apear it's do click and return 1
second enter numbers (is TextEntry clear?) then click and return 2
if nothing return 0