Window under Cursor?
Posted: Sat Aug 29, 2009 10:26 am
anyone know an easy way to get the handle of the window under the cursor? the window im dealing with, does not belong to my app.
c ya,
nco2k
c ya,
nco2k
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
Repeat
If GetCursorPos_(@Mouse.POINT)
Debug WindowFromPoint_(Mouse)
EndIf
Delay(1000)
Until GetKeyState_(#VK_ESCAPE) & $8000
Code: Select all
Repeat
If GetCursorPos_(@Mouse.POINT)
Debug WindowFromPoint_(Mouse\y<<32 | mouse\x)
EndIf
Delay(1000)
Until GetKeyState_(#VK_ESCAPE) & $8000