Replace MinitorFromWindow with the following 2 functions:
CODE:
; Get the current monitor the mouse cursor is in.
DllCall("GetCursorPos", "uint64*", point:=0)
hMonitor := DllCall("MonitorFromPoint", "uint64", point, "uint", 0x2, "ptr")
Statistics: Posted by iseahound — Today, 18:31