nomis86 Posted August 1, 2012 Posted August 1, 2012 Hello, The Function "ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y]]]] )" needs a controlID, but all controls in the window have the same ID. Is there any other way to click on a button. Perhaps with ClassnameNN or Advanced (Class). >>>> Control <<<< Class: Button Instance: 95 ClassnameNN: Button95 Name: Advanced (Class): [CLASS:Button; INSTANCE:95] ID: 1 Text: OLE-Objekte Position: 406, 626 Size: 128, 22 ControlClick Coords: 63, 12 Style: 0x54000000 ExStyle: 0x00000000 Handle: 0x000B0848 >>>> Control <<<< Class: Button Instance: 97 ClassnameNN: Button97 Name: Advanced (Class): [CLASS:Button; INSTANCE:97] ID: 1 Text: Auftragstexte Position: 278, 626 Size: 128, 22 ControlClick Coords: 107, 11 Style: 0x54000000 ExStyle: 0x00000000 Handle: 0x000B0898
BartW Posted August 1, 2012 Posted August 1, 2012 (edited) you can also use the Class and the inctance number.(ClassnameNN) "ControlClick ( "title", "text", "Button95")" "ControlClick ( "title", "text", "Button97")" Edited August 1, 2012 by BartW
JohnOne Posted August 1, 2012 Posted August 1, 2012 ControlClick("window",""," [CLASS:Button; INSTANCE:97]") AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
jdelaney Posted August 1, 2012 Posted August 1, 2012 look in help file for 'controls' to get the full list, and examples 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.
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