Jump to content
Sign in to follow this  
md9

How to capture control items without handle

Recommended Posts

md9

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

Share this post


Link to post
Share on other sites
Siao

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"

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.