Home » Questions » Computers [ Ask a new question ]

How can I use the keyboard to switch the mouse between left-handed and right-handed?

How can I use the keyboard to switch the mouse between left-handed and right-handed?

We have both left-handed and right-handed users in our house. It would be handy to be able to change this setting from the keyboard rather than using the Mouse control panel. Is there a way to assign a keyboard combination to this function?

Asked by: Guest | Views: 361
Total answers/comments: 2
bert [Entry]

"Another AutoHotkey approach:

^!s::
run main.cpl
RegRead, swapped, HKEY_CURRENT_USER, Software\Synaptics\SynTPCpl\TouchPadPS2_3, SwapMouseButtons
WinWait,Mouse Properties
if (swapped = 1)
{
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Synaptics\SynTPCpl\TouchPadPS2_3, SwapMouseButtons, % !swapped
Send {TAB}{R}{A}{Enter}

}
else
{
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Synaptics\SynTPCpl\TouchPadPS2_3, SwapMouseButtons, % !swapped
Send {TAB}{L}{A}{Enter}
}
return

Ctrl + Alt + s will toggle the button swap.

After installing AutoHotkey, run it; you'll get a dialog to make a script:

Hit Yes and paste the above code into the file, save it. Now run AutoHotkey again so it sits in your tray. It will now listen for the key combinations above until you right-click its tray icon and exit it."
bert [Entry]

I have both a right handed and a Logitech left-handed mouse installed. The left-handed mouse is automatically configured backwards. When you use it, the buttons are reversed, so that it operates correctly. No mucking with control panel is required!