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

3 thoughts on “Right shift broken in Synergy & a work-around

This site uses Akismet to reduce spam. Learn how your comment data is processed.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Learn More)