Jump to content

Recommended Posts

Posted

Can someone else please confirm there is a problem with WindowFromPoint running on x64 when compiled as x64. I'm getting the wrong window handles returned. Compiled as x86 the returns are correct. Just move the mouse around, as x86 you should get different window handles. As x64, not so much.

Next would be to determine if this is an AutoIt problem or a win32 API problem. Thanks in advance.

My test setup:

Win7 Ultimate x64

AutoIt 3.3.5.1

#AutoIt3Wrapper_UseX64=y

HotKeySet("{ESC}", "_Exit")

While 1
    $a = DllCall("user32.dll", "hwnd", "WindowFromPoint", "long", MouseGetPos(0), "long", MouseGetPos(1))
    $b = DllCall("user32.dll", "int", "GetWindowTextW", "hwnd", $a[0], "wstr", "", "int", 1024)
    ConsoleWrite($a[0] & " : " & $b[2] & @CRLF)
    Sleep(1000)
WEnd

Func _Exit()
    Exit
EndFunc

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
×
×
  • Create New...