Code: Select all
WinGet, OutputVar, ID
But hwnd should be in 32 bit range.
https://docs.microsoft.com/en-us/windows/win32/winprog64/interprocess-communication?redirectedfrom=MSDN
When I get such hwnd := 0xffffffff80400b6c and try to use it with AccessibleObjectFromWindow, I cannot receive iaccessible interface.
To fix it I have to do
Code: Select all
varsetcapacity(var, 8, 0)
numput(hwnd, var, 0, "uint64")
hwnd := numget(var, 0, "uint")
https://stackoverflow.com/questions/43012454/is-it-normal-for-an-hwnd-to-have-its-high-bit-set
It would be good to fix it in ahk source code