Windows: How to swap Mouse Buttons: Right-Click, Middle-Click

By Xah Lee. Date: . Last updated: .

Swap your right-button and middle-button's actions.

logitech anywhere 2 mouse
Logitech Anywhere Mouse

Gaming mouse usually do not let you reprogram the left and right buttons. However, you can set a extra button to do middle click.

For mouse with lots buttons, see Mouse Reviews

Microsoft Windows

Use AutoHotkey to swap buttons.

; AutoHotkey code to swap middle and right buttons
$RButton::MButton
$MButton::RButton

Create this file, save it as swap_buttons.ahk, and you need to tell AutoHotkey to start it when your computer starts. For how, see: AutoHotkey Tutorial.

Linux

Linux: How to Swap Mouse Buttons.

Why do you want to swap the buttons?

Why Swap Mouse Middle-Click and Right-Click?