Jump to content

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


h711
 Share

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...