magodiez 0 Posted November 11, 2011 (edited) Hello, Trying to test an internal aplication, I'm not able to find what it is the ControlID of any of the Controls into the aplication window with the "Window Info" aplication. I've tried some scripts too, trying to return the text with [iD:XXXX] (tried to find the text with a for, from 0 to 100000), [TEXT,"Exit"] and even some scripts found in the forum, but I can't find any Control. Local $text = "" WinActivate("[CLASS:IlogViewsWndClass]") $text = ControlGetText("[CLASS:IlogViewsWndClass]",'', "[TEXT:'Exit']") If(@error <> 1) Then ConsoleWrite(">" & $text & @CRLF) EndIf For $i=1 To 100000 $text = ControlGetText("[CLASS:IlogViewsWndClass]",'', "[ID:" & $i & "]") If(@error <> 1) Then ConsoleWrite(">" & $text & @CRLF) EndIf Next Is there any other way to interact with the button/combo/textfields/menu to click/select/type them (without x,y coordinates) or I'm forced to do it by keyboard with the TAB, !, etc.? And if I only can do it by keyboard, is there any way of knowing the state or text of the different Controls ( Obviously without the ControlId)? Thank, Edited November 11, 2011 by magodiez Share this post Link to post Share on other sites
sleepydvdr 8 Posted November 11, 2011 Try this: ControlClick("[CLASS:IlogViewsWndClass]","", "Exit", "left") #include <ByteMe.au3> Share this post Link to post Share on other sites
magodiez 0 Posted November 11, 2011 (edited) Doesn't work, I'm not sure I can find a ControlID or text for the buttons. I've also tried this to find the ControlID with ControlGetFocus, and it returns nothing, and no error WinActivate("[CLASS:IlogViewsWndClass]") ConsoleWrite(ControlGetFocus("[CLASS:IlogViewsWndClass]")) If @error = 1 Then ConsoleWrite("error") EndIf Edited November 11, 2011 by magodiez Share this post Link to post Share on other sites