I use Synergy, the free/open source multi-platform software package to share a single mouse and keyboard among multiple computers, to control my work ThinkPad and my personal MacBook Air at the same time. The server is the Windows 7 box.

A bug in the Synergy code introduced some time ago broke the handling of the right shift key in this setup. Basically, the server ignores the right shift key when sent by the server. It is an annoying bug.

While the patch is forthcoming I reached a point where the annoyance pushed me to act. I use AutoHotKey, (AHK) so a little addition to my mouse wheel scroll script from the HowTo Geek addresses the bug with two lines:

#InstallKeybdHook
RShift::LShift

Add the first line at the top of your script and the other line somewhere below. Exit AutoHotKey and relaunch your script.

UPDATE: If you lock your Windows 7 host that is your Synergy server, when you unlock the host you have to restart the AHK script for it to work until you lock the Synergy server's host again. Perhaps someone else knows the fix?

Here's my complete script. It makes scrolling match on the two laptops, too, by the way:

; Reverse Scrolling Script by How-To Geek modified by prjorgensen

#MaxHotkeysPerInterval 9999999 ; keep the alert popup from showing
#InstallKeybdHook

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

WheelUp::
 Send {WheelDown}
Return

WheelDown::
 Send {WheelUp}
Return

RShift::LShift


My original entry is here: Right shift broken in Synergy & a work-around. It posted Tue, 29 May 2012 23:39:17 +0000.

Filed under: technology, Apple, autohotkey, foss, Mac OS X, synergy, ThinkPad, Windows 7,