Processor Posted December 18, 2012 Share Posted December 18, 2012 I don't know why I'm not able to use control id correctly. (class, instance ...)for instance this works:run("notepad") WinWaitActive("[CLASS:Notepad]") sleep(1000) ControlSetText("[CLASS:Notepad]", "", "Edit1", "test")but this not :run("C:\Program Files\Internet Explorer\iexplore.exe") WinWaitActive("[CLASS:IEFrame]") sleep(2000) ControlSetText("[CLASS:IEFrame]", "", "ToolbarWindow322", "test")Why???this is what Window Info Tool gave to me:>>>> Window <<<<Title: La Configuration de sécurité renforcée d'Internet Explorer est activée - Windows Internet ExplorerClass: IEFramePosition: -4, -4Size: 1208, 878Style: 0x17CF0000ExStyle: 0x00000100Handle: 0x000502F4>>>> Control <<<<Class: ToolbarWindow32Instance: 2ClassnameNN: ToolbarWindow322Name:Advanced (Class): [CLASS:ToolbarWindow32; INSTANCE:2]ID:Text: testPosition: 80, 5Size: 762, 22ControlClick Coords: 441, 13Style: 0x5600B94DExStyle: 0x00000080Handle: 0x000302F6...please helpProcessor Link to comment Share on other sites More sharing options...
JohnOne Posted December 18, 2012 Share Posted December 18, 2012 (edited) Try ControlSetText("[CLASS:IEFrame]", "", "[CLASS:ToolbarWindow32; INSTANCE:2]", "test") Edited December 18, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
jdelaney Posted December 18, 2012 Share Posted December 18, 2012 If you are attempting to change the URL, the _IE functions are a much easier way to do it. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Processor Posted December 18, 2012 Author Share Posted December 18, 2012 (edited) Try ControlSetText("[CLASS:IEFrame]", "", "[CLASS:ToolbarWindow32; INSTANCE:2]", "test") This not working Now I don't know why but the info shown by the info window tool are not good, I used autohotkey to get the info and it showed me that the ClassNN is not ToolbarWindow322 but Edit1. Using Edit1 the text is sent (even if we can't see it's sent) Processor Edited December 18, 2012 by Processor Link to comment Share on other sites More sharing options...
JohnOne Posted December 18, 2012 Share Posted December 18, 2012 (edited) Well blow me down, you're only right.EDIT: Is the tool you used available a separate download from AHK?EDIT2: Never mind, seems to get all the correct info. Edited December 18, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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