Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi-monitor taskbar
#12
SPELLING ERROR! Man, that drove me nuts all morning. I read and read and read...did I check my spelling? No!
Function LockMouseToMonitor
Code:
Copy      Help
;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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)