Jump to content

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


 Share

Recommended Posts

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.

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

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