Sign in to follow this  
Followers 0
h711

Any way to use dialog box control handle to identify buttons with duplicated ID?

3 posts in this topic

#1 ·  Posted (edited)

I need a good way to ID buttons with duplicated IDs. The duplicated buttons are never on the same page of a 6 page installer.

Each page of the installer has the same window class: #32770 and Window handle. However, the Control Handle is different for each page.

Can I get this uniq control handle from the active (visible) dialog box and use it to help id buttons with duplicated ID (for functions like ControlClick)?

The page control id + button ID should be enough to id an button

Please give me some help.

Edited by h711

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Or I put this way:

Can I let ControlClick only click on the button on the visible page? This way, the program won't click on the wrong button on the hidden pages with the same button ID.

Edited by h711

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Or if there is a way to let controlClick only click the button match with button ID AND the button is visible.

Edited by h711

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