Shevilie Posted February 4, 2007 Share Posted February 4, 2007 Well the problem is that I often use Autoit Window Info tool - And it work like a charm.. The problem is that some windows are build so all buttons are "visible" to the program but not the human eye (they are under a different tab or menu) and that makes it very diffecult to get the right id (have to take the mouse nearly pixel by pixel until the right text is in the text (in auto tool) and the hit alt + f to freeze - well this is very bugger... And I would like to do something like While (something) $text = ControlGetText("Appname", "", $control) ConsoleWrite("Control: " & $controlname & " Contain: " $text) WEnd Or simply get a list of all ControlIDs in a program (or a list of all ClassNameNN) Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 4, 2007 Moderators Share Posted February 4, 2007 http://www.autoitscript.com/forum/index.ph...st&p=236417 Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Shevilie Posted February 4, 2007 Author Share Posted February 4, 2007 Hmm WinGetClassList looks a little what I'm looking for Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 4, 2007 Moderators Share Posted February 4, 2007 (edited) Hmm WinGetClassList looks a little what I'm looking forThat (WinGetClassList) won't return what you are trying to get, just use the actual function itself, and you will get all the information. When I said I was using a custom function the other day to give me all the information of that java applet, it was a modded version of that. Edited February 4, 2007 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Shevilie Posted February 4, 2007 Author Share Posted February 4, 2007 (edited) Nice.. (Well the other gave a little after i modded it to) $t = WinGetClassList("name") $i = 0 While StringLen($t) > 0 ;~ MsgBox(0,0,$t) $pos = StringInStr($t, @LF) If $pos = 0 Then Exit $test = StringLeft($t, $pos -1) $t = StringTrimLeft($t, $pos) ConsoleWrite("-------" & @LF & $test & @LF) For $i = 0 To 10 ConsoleWrite(ControlGetText("name", "", $test & $i) & @LF) Next WEnd Going to have a look at your link Edited February 4, 2007 by Shevilie Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 4, 2007 Moderators Share Posted February 4, 2007 Nice.. (Well the other gave a little after i modded it to) $t = WinGetClassList("name") $i = 0 While StringLen($t) > 0 ;~ MsgBox(0,0,$t) $pos = StringInStr($t, @LF) If $pos = 0 Then Exit $test = StringLeft($t, $pos -1) $t = StringTrimLeft($t, $pos) ConsoleWrite("-------" & @LF & $test & @LF) For $i = 0 To 10 ConsoleWrite(ControlGetText("name", "", $test & $i) & @LF) Next WEnd Going to have a look at our linkYeah, if you know the Control "Type" and the range of numbers, that'd be fine Just a hint, ControlGetHandle() returns 0 if it isn't found, so you may not need to continue your loop. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Shevilie Posted February 4, 2007 Author Share Posted February 4, 2007 Fast spagethi... you know what I mean But I dont wanna redo the wheel, so I'll borrow you little UDF Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now