Jump to content
Sign in to follow this  
nomis86

ControlClick without ID

Recommended Posts

nomis86

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
BartW

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.