khandan Posted August 4, 2011 Share Posted August 4, 2011 HiI am trying to get familiar with ControlClick commmad I wrote this line besed on AutoIt Window Info:ControlClick("Class:#32770","","[CLASS:Button; INSTANCE:3]","","2", 31 ,13 )even I tried thisControlClick("Model Description","","[CLASS:Button; INSTANCE:3]","","2", 31 ,13 )All I want is that want to get rid of explanatory windows by clicking on OK buttonI have reviewed some script but couldn't find where I am donig wrongAutoIt Window Info>>>> Window <<<<Title: Model DescriptionClass: #32770Position: 325, 370Size: 606, 451Style: 0x94C800C4ExStyle: 0x00010101Handle: 0x002902E2>>>> Control <<<<Class: ButtonInstance: 3ClassnameNN: Button3Name: Advanced (Class): [CLASS:Button; INSTANCE:3]ID: 1Text: &OkPosition: 521, 67Size: 68, 26ControlClick Coords: 31, 13Style: 0x5001000BExStyle: 0x00000004Handle: 0x00AB0DDC>>>> Mouse <<<<Position: 880, 475Cursor ID: 0Color: 0xF0F0F0>>>> StatusBar <<<<>>>> ToolsBar <<<<>>>> Visible Text <<<<Name : CLIMEX - Compare Locations (1 species)Author/s:R.W. Sutherst and G.F.MaywaldVersion:3.0Creation Date/Time:26/07/2005; 10:00Timestep (days):7>>>> Hidden Text <<<< Link to comment Share on other sites More sharing options...
JohnOne Posted August 4, 2011 Share Posted August 4, 2011 (edited) EDIT: sorry wrong thread. Try ControlClick("CLASS:#32770","","[CLASS:Button; INSTANCE:3]","Primary") Or ControlClick("Model Description","","[CLASS:Button; INSTANCE:3]","Primary") Edited August 4, 2011 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...
khandan Posted August 4, 2011 Author Share Posted August 4, 2011 EDIT: sorry wrong thread. Try ControlClick("CLASS:#32770","","[CLASS:Button; INSTANCE:3]","Primary") Or ControlClick("Model Description","","[CLASS:Button; INSTANCE:3]","Primary") === Thanks John, I appreciate it. Should I use the same if I want it to click on somewhere on the page like the Icons like clicking on Save or Open button of a program?If I should give x,y position which position I should use Mouse or Controlclick cor? Cheers Link to comment Share on other sites More sharing options...
JohnOne Posted August 4, 2011 Share Posted August 4, 2011 I dont know the application, but usually each button has its own instance. 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...
khandan Posted August 4, 2011 Author Share Posted August 4, 2011 I dont know the application, but usually each button has its own instance. === this is what AutoIT window ifo gives me, the problem is that when I want to ask it to left click somewhere, but when i give mouse postion or controlclick cor it dosn't work:) >>>> Window <<<< Title: CLIMEX - Compare Locations (1 species) Class: Afx:00400000:8:00010005:00000000:EB7D0649 Position: 25, 25 Size: 1080, 625 Style: 0x14CF0000 ExStyle: 0x00000110 Handle: 0x00580820 >>>> Control <<<< Class: AfxWnd70 Instance: 2 ClassnameNN: AfxWnd702 Name: Advanced (Class): [CLASS:AfxWnd70; INSTANCE:2] ID: 1 Text: Position: 12, 74 Size: 741, 158 ControlClick Coords: 39, 128 Style: 0x56000000 ExStyle: 0x00000000 Handle: 0x002E0598 >>>> Mouse <<<< Position: 84, 277 Cursor ID: 0 Color: 0xFFFF00 >>>> StatusBar <<<< 1: Ready 2: Model: Loaded 3: Parameters : H:\M...\Compare Locations (1 species).gmp 4: Unmodified >>>> ToolsBar <<<< >>>> Visible Text <<<< Model Components Ready >>>> Hidden Text <<<< 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