Sign in to follow this  
Followers 0
dynamokaj

how to get handle of the window that a given control lies within?

2 posts in this topic

Hi..

I have to identical clients running, based on Title and Class, so WinGetHandle can not see the difference of these two.

But with ControlGetHandle I see a difference, since it seems that it prefix it with an id for the virtual environment that the client is running in.

But I need the handle for the window only, so is it possible to get the handle of a window, only based on a handle to a control that lies within the window?

Please ask me if I have not descriped my problem well enough. :)

Kinds Regards Kaj.

Share this post


Link to post
Share on other sites



_WinAPI_GetParent does not return the same handle of the window as "AutoIt v3 Window Info" does, but when I use the returned handle by _WinAPI_GetParent in WinActivate it activates the correct window.

So I guess it must be correct. :) Thank you very much.

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