Sign in to follow this  
Followers 0
nomis86

ControlClick without ID

4 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

you can also use the Class and the inctance number.(ClassnameNN)

"ControlClick ( "title", "text", "Button95")"

"ControlClick ( "title", "text", "Button97")"

Edited by BartW

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0