How to Program Mouse Buttons in Windows 11

Last updated on November 17th, 2026 at 03:05 pm

Select Start > Settings > Bluetooth & devices > Mouse, then change Primary mouse button to swap left and right. For more button options, such as double-click speed and ClickLock, select Additional mouse settings. To give extra side buttons new jobs, use the app from your mouse’s maker.

Applies to: Windows 11.

Swap the left and right buttons

  1. Select Start > Settings.
  2. Select Bluetooth & devices > Mouse.
  3. Open the list next to Primary mouse button and choose Left or Right.
Windows 11 Mouse settings page with the Primary mouse button list and Additional mouse settings highlighted
Choose the primary button (1). Additional mouse settings (2) has more button options.

The change works right away. Left-handed users often pick Right.

From Control Panel instead: press Windows + R, type main.cpl, and press Enter. On the Buttons tab, check Switch primary and secondary buttons and select OK. It changes the same setting.

Set double-click speed and ClickLock

  1. On the Mouse page, select Additional mouse settings.
  2. On the Buttons tab, drag the Double-click speed slider. Double-click the folder picture to test it.
  3. Check Turn on ClickLock to drag or highlight without holding the button down. Press the button briefly to lock it, and click again to let go.
Mouse Properties Buttons tab with Turn on ClickLock checked and the OK button highlighted
Turn on ClickLock (1), then select OK (2).
  1. Select OK.

Program extra mouse buttons

Windows 11 doesn’t have a setting for side buttons or other extra buttons. By default they usually go Back and Forward in browsers and File Explorer.

To change what they do, install the free app from the company that made your mouse. For a Microsoft mouse, that’s Microsoft Mouse and Keyboard Center. In the app, pick a button and choose a new action, such as copy, paste, or opening an app.

Which app to use for your mouse

Each maker has its own free app, and most only work with that maker’s mice:

  • Microsoft: Microsoft Mouse and Keyboard Center. It can set a button to open an app, run a keyboard shortcut, or do something different in each app.
  • Logitech: Logi Options+ for everyday mice, or Logitech G HUB for gaming mice.
  • Razer, Corsair, SteelSeries: Razer Synapse, Corsair iCUE, and SteelSeries GG.
  • Store-brand or no-name mice: check the box or the maker’s support page. Many have no app, so use AutoHotkey (below).

Download these apps only from the maker’s own website. Some gaming mice save button settings in the mouse itself, so they keep working on another PC without the app.

The app usually needs its full driver to change side buttons. On a work PC where the app was installed from a company software store, the left and right buttons may change but the side buttons may not. Your IT team would need to install the full version.

Can I make the middle button do something else?

Not from Windows Settings. Clicking the wheel opens links in a new tab in browsers and closes tabs when you click one. To change it, use your mouse maker’s app or an AutoHotkey script with MButton as the button name.

The built-in options are also covered on Microsoft’s Change mouse settings page.

Related: how to disable mouse acceleration in Windows 11.

Remap buttons without the maker’s app

If your mouse maker doesn’t offer an app, the free tool AutoHotkey can reassign side buttons. After installing it, a one-line script such as XButton1::^c makes the back button copy, and XButton2::^v makes the forward button paste. The script only works while it’s running.

To set this up with AutoHotkey version 2:

  1. Install AutoHotkey from its official website.
  2. Right-click the desktop, select New > AutoHotkey Script, and name it, for example mouse.ahk.
  3. Right-click the file, select Open with > Notepad, add your lines below the existing ones, and save.
  4. Double-click the file to run it. A green H icon appears near the clock.
  5. To start it with Windows, press Windows + R, type shell:startup, and put a shortcut to the file in that folder.

XButton1 is the rear side button and XButton2 is the front one. To change a button in one app only, put #HotIf WinActive("ahk_exe chrome.exe") on the line above, swapping in the app’s program name, and #HotIf on the line after.

Change scrolling and pointer speed

These live on the same page as the button settings: Settings > Bluetooth & devices > Mouse. Flipping the wheel itself is a separate change; you can change the mouse scrolling direction in Windows 11.

  • Mouse pointer speed: drag the slider to make the pointer move faster or slower.
  • Roll the mouse wheel to scroll: choose Multiple lines at a time or One screen at a time.
  • Lines to scroll at a time: raise it if long pages feel slow to scroll.
  • Scroll inactive windows when hovering over them: lets you scroll a window without clicking it first.

For finer control, select Additional mouse settings, open the Pointer Options tab, and turn Enhance pointer precision on or off. It speeds the pointer up when you move the mouse quickly. Many gamers turn it off so movement feels consistent.

More options in Mouse Properties

Select Additional mouse settings on the Mouse page to open Mouse Properties. Besides the Buttons tab, these are worth knowing:

  • Pointer Options > Snap To: moves the pointer to the default button whenever a dialog box opens.
  • Pointer Options > Show location of pointer when I press the CTRL key: draws a circle around the pointer so you can find it.
  • Pointer Options > Hide pointer while typing.
  • Wheel > Horizontal Scrolling: sets how far a tilting wheel scrolls sideways, if your mouse has one.

If you can’t use a mouse at all, Mouse keys lets the number pad move the pointer and click. Turn it on in Settings > Accessibility > Mouse.

How do I make the pointer easier to see?

You can change the cursor in Windows 11. A pointer that moves too fast or too slow is a sensitivity issue, and the steps to change mouse sensitivity are much the same on Windows 11.

If the buttons don’t do what you set

  • The maker’s app isn’t running. Most apps must run in the background for custom buttons to work. Check that it starts with Windows.
  • A game or app overrides them. Many games read the buttons directly. Set the buttons in the game’s own controls menu, or create a per-app profile in the mouse software.
  • Two apps are fighting. Running the maker’s app and AutoHotkey at the same time can cancel each other out. Use one.
  • You swapped the buttons by mistake. Press the Windows key, type mouse, press Enter, then use Tab and the arrow keys to change Primary mouse button back.

The side buttons don’t work at all. Test them in your browser first: by default the rear button goes back a page and the front button goes forward. If nothing happens, plug the mouse into a different USB port, ideally one on the back of a desktop PC, and reinstall the maker’s app. Then open Device Manager, expand Mice and other pointing devices, and check for a warning sign on your mouse.