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

Find Type
http://forum.yoko.com.ua/viewtopic.php?f=3&t=939
Page 1 of 1

Author:  Psyny [ 2004-07-22 08:01:45 ]
Post subject:  Find Type

Hail.

How i can

1 - After the ,FindType used, print the Name, X Pos, Y Pos of object find.
2 - Appear a dialog with the OK button...
3 - Then i hit OK, print the Name, X Pos , Y Pos of NEXT object thar ive found before..

ITs possible ?

Author:  Lord Ruslan Nightmare [ 2004-07-22 15:27:52 ]
Post subject: 

Quote:
1 - After the ,FindType used, print the Name, X Pos, Y Pos of object find.
2 - Appear a dialog with the OK button...
3 - Then i hit OK, print the Name, X Pos , Y Pos of NEXT object thar ive found before..

Code:
#1
uo.findtype("type")
uo.click("finditem")
while uo.getname("finditem") == ""
  wait(100)
wend
uo.print("Found " + uo.getname("finditem") + " , " + str(uo.getx("finditem")) + " , " + str(uo.getx("finditem")))
#2
message("Message with OK button. Scrip here halts, until you push the button")
#3
uo.print("Found " + uo.getname("finditem") + " , " + str(uo.getx("finditem")) + " , " + str(uo.getx("finditem")))

It's simple...or maybe i don't understand, what do you want...I confused by "found before"

Author:  Psyny [ 2004-07-24 22:30:53 ]
Post subject: 

thx for repply
I dont know how to express it too.... my english sucks =(
Its works very well...

But in 3 stage i mean something like, show a list of objects found and their positions...

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