I use my mouse with both hands and like to switch back and forth for comfort reasons. However, this is made difficult by needing to go through about a zillion layers of menus to swap the buttons each time. Is there an easy way to create a single keyboard shortcut that would swap my left and right mouse button?
Edit: My OS is Windows 7.
Best Answer
As blsub6 mentioned, you can change a registry value (with a command called from a batch file):
or
However, you need to logout before it will take effect.
The better solution is to make a tiny .exe with C# to swap the setting, as described in the answers to this question.
Make a text file which you can call
swapmouse.cs
, containing this:And compile it to
swapmouse.exe
with this command:In more recent versions of .NET you may need to add
/out:swapmouse.exe
and/target:exe
:Then you just double-click that exe to swap the mouse buttons. It takes effect immediately.
Or, as rad mentions, you can create a shortcut, and define a keyboard shortcut/hotkey in the Shortcut tab of it's Properties.