Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Toggle window to monitor.
#4
Function Monitor_Toggle
Trigger #CSL 0x9     Help - how to add the trigger to the macro
Code:
Copy      Help
int mon pmon
POINT p; xm p
mon=MonitorFromPoint(p MONITOR_DEFAULTTONULL)
sel mon
,case 1180117
,int hwnd=win()
,MoveWindowToMonitor hwnd 1
,case 7340581
,hwnd=win()
,MoveWindowToMonitor hwnd 2

So this works...and I'm sure it will probably only work on this machine. Is there a better way to determine what monitor a window is on?

Thanks,
Jimmy Vig


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)