Windows: Swap Mouse Right-Click Middle-Click

By Xah Lee. Date: . Last updated: .

Here's how to swap mouse right-button and middle-button's actions, for Microsoft Windows. For why, see see Why Swap Mouse Right Button and Middle Button

Use AutoHotkey to swap buttons. You need to install it. [see AutoHotkey Tutorial]

; AutoHotkey code to swap middle and right buttons

Copy and paste the above code and save it to a file, save it as swap_buttons.ahk. Double click it to open. You can set Microsoft Windows to automatically run the script when machine starts.

Customize Mouse

Windows Keyboard Guide