01-29-2010, 06:48 AM
SPELLING ERROR! Man, that drove me nuts all morning. I read and read and read...did I check my spelling? No!
Function LockMouseToMonitor
Function LockMouseToMonitor
;GetMonitorFromPoint
POINT p; xm p
RECT r
int mon=MonitorFromPoint(p 0)
int i=MonitorIndex(mon)
MonitorFromIndex(i 0 &r)
ClipCursor(&r)
0.15
ifk((VK_CONTROL))
,GetVirtualScreen(int'x int'y int'w int'h)
,r.bottom=x; r.right=y; r.top=w; r.left=h
,ClipCursor(&r)
,wait 0.1 K (VK_CONTROL);err
goto GetMonitorFromPoint