Jump to content

Recommended Posts

Posted
  On 2/21/2021 at 1:14 PM, Danp2 said:

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

Expand  

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
https://www.autoitscript.com/autoit3/docs/libfunctions/_WinAPI_ScreenToClient.htm

To work in Python

Posted (edited)
  On 2/21/2021 at 8:05 PM, 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.

Expand  

i use it but  There is a problem  

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

hwnd type is int , and output 7997686

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

Edited by Hawlong

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