Code: Select all
X := lParam & 0xFFFF
Y := lParam >> 16
Code: Select all
X := lParam & 0xFFFF
Y := lParam >> 16
Code: Select all
; Get the current monitor the mouse cursor is in.
DllCall("GetCursorPos", "uint64*", point:=0)
hMonitor := DllCall("MonitorFromPoint", "uint64", point, "uint", 0x2, "ptr")