wraithdu Posted January 29, 2010 Share Posted January 29, 2010 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 Link to comment Share on other sites More sharing options...
Valik Posted January 29, 2010 Share Posted January 29, 2010 #1362 Link to comment Share on other sites More sharing options...
wraithdu Posted January 29, 2010 Author Share Posted January 29, 2010 Thanks, that's the same fix I came up with when playing around a bit more (and the same theory I had). Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now