Jump to content

Not found HWnd() function !

Recommended Posts

6 hours ago, Danp2 said:

Appears that function isn't available in AutoItX, so you won't be able to use it in Python.

mmm okay , i found another solution 

v = "0x007A08F6"
le = "[HANDLE:%s]" % v

this code work good , Maybe someone need it

Please do you have any idea how to convert this function

To work in Python

Link to post
Share on other sites
43 minutes ago, Danp2 said:

If you look at the underlying code for _WinAPI_ScreenToClient, you'll find that it calls ScreenToClient from user32.dll. Seems like this offers the same thing for python.

i use it but  There is a problem  

hwnd = win32gui.FindWindow( None,"Untitled - Notepad") 

hwnd type is int , and output 7997686

when i use this handle =  7997686  not work , only accept title "Untitled - Notepad"

Edited by Hawlong
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...