Jump to content

How to capture control items without handle


Recommended Posts

I have a tree control in a window (with a handle 0x0007068A,) and when I open up the tree node, all the children have the same handle. Which makes it difficult to capture individual items, Also using _GUICtrlTreeView_GetChildCount on this node would result in -1. Only thing that changes is the mouse coordinates when I check using AUTO IT Window Info.

Did someone face this issue before, Is there a work around? none of the API call work without a windows. Any help is going to be very helpful.

- MD

Link to comment
Share on other sites

Do you see anywhere in the documentation of _GUICtrlTreeView_GetFirstItem being said that it works for anything else than one very specific purpose - getting the first item of entire treeview?

To walk through the child items of a parent item, there are _GUICtrlTreeView_GetFirstChild/_GUICtrlTreeView_GetNextChild

"be smart, drink your wine"

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...