Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v1) • Re: Get the monitor number that the mouse is in?

$
0
0
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



Viewing all articles
Browse latest Browse all 579

Trending Articles