Sends KVM switching keystroke on certain mouse gesture. Windows only.
KVM switches allow to jump from one PC to another with the use of some key sequence. As of DLink KVM-221 these sequences are double CapsLock or double ScrollLock. Often it's more convenient to use mouse gesture to switch. This script recognizes staying in the screen corner (bottom-left or bottom-right) for a second and issues switching keystroke in respond.
The script is written in AutoIt v3 language, WSH is used to send a keystroke to keyboard buffer. Latest compiled executable is also provided, so there is no need to install AutoIt unless you need to change/recompile the script.
Just run left-to-right.bat
or right-to-left.bat
to respond to bottom-right and bottom-left screen corner, respectively.
Compiled script is just a console application, so mouse-driven switching does not work when PC is locked.