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
see Logitech MX Master Wireless 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

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: How to Swap Mouse Buttons.

Why do you want to swap the buttons?

Why Swap Mouse Middle-Click and Right-Click?

If you have a question, put $5 at patreon and message me.