Hi y'all! Here is a simple script that works well on my dual-monitors
when the second monitor is set to "extended desktop".
-God bless!
- Brother Gabriel-Marie
/*
This simple script will move the mouse along with the window on dual
monitors.
the idea is that the mouse retains its position during the swap.
Note that Mrs. Sue Chastain's MonitorSwitcher script is needed!
BE SURE AND SET MW to the width of your screen.
This is just a simple script, so the monitors must be both the same size.
*/
local MW = 1280
local LWy = ymouse
local LWx = xmouse
If (LWx > MW ) do
LWx = LWx - MW
Else
LWx = LWx + MW
EndIf
Script.RunFile("DualMonitorswitcher.powerpro")
win.mouseto(LWx, LWy)
---------------------------------------
;Furthermore,
;This will swap JUST the mouse to the same place on the other monitor
local LWy = ymouse
local LWx = xmouse
If (LWx > 1280) do
LWx = LWx - 1280
Else
LWx = LWx + 1280
EndIf
win.mouseto(LWx, LWy)