Docs/ How-to guides/ Open the resize overlay from a mouse button
How-to guide

Open the resize overlay from a mouse button

Bind a spare mouse button to MaxTo, and snap windows without touching the keyboard.

Applies to MaxTo 3.1 and laterWorks with Any driver that can run a command
Goal
A spare mouse button opens MaxTo's resize overlay for the window you're pointing at.
Before you start
  • A programmable mouse and its driver software, or AutoHotkey.

MaxTo can be driven from the command line — MaxTo.exe open resize opens the resize overlay for the active window — which means any software that can run a command on a button press can drive MaxTo. That includes every programmable-mouse driver.

Two ways to bind, pick per driver

  1. Run the command. Bind the button to run MaxTo.exe open resize. This is the most direct route, but some drivers’ “launch application” actions can’t pass the open resize arguments.
  2. Send the hotkey. Bind the button to type your resize shortcut (Win + Alt + Space by default). Every driver can do this.

If your driver can launch a program but not pass arguments, there’s a standard escape hatch: launch a shortcut file with the arguments baked in.

Create a shortcut file the driver can launch

  1. Right-click the desktop → NewShortcut.
  2. As the location, enter (arguments included): "%LocalAppData%\MaxTo\current\MaxTo.exe" open resize
  3. Name it something like MaxTo resize and finish.

Point your driver’s launch action at this .lnk file. If you installed MaxTo with Scoop, you can skip the path — the maxto command is on your PATH, so maxto open resize works from anywhere.

Logi Options+ (Logitech)

Options+ launch actions don’t take command-line arguments, so use the keystroke route:

  1. Open Logi Options+ and select your mouse.
  2. Pick the button to rebind and choose Keystroke assignment.
  3. Record your resize shortcut — Win + Alt + Space.

Razer Synapse

Synapse can launch both programs and shortcut files:

  1. Open Synapse → your mouse → the button you want to rebind.
  2. Choose LaunchLaunch Program and browse to the MaxTo resize shortcut you created above.

Corsair iCUE

  1. Open iCUE → your mouse → Key Assignments.
  2. Assign the button an App Launch action pointed at the MaxTo resize shortcut — or record a macro that presses Win + Alt + Space.

SteelSeries GG

  1. Open SteelSeries GG → Engine → your mouse.
  2. Bind the button to Launch Application with the MaxTo resize shortcut — or use a macro that sends Win + Alt + Space.

X-Mouse Button Control

XMBC passes arguments directly, no shortcut file needed:

  1. Pick the button and choose Launch Application from its dropdown.
  2. Enter the full command line: "C:\Users\<you>\AppData\Local\MaxTo\current\MaxTo.exe" open resize

AutoHotkey

With AutoHotkey v2, bind a side button (here XButton2, the “forward” button) to the command:

XButton2::Run(EnvGet("LocalAppData") "MaxTocurrentMaxTo.exe open resize")
More than the resize overlay Everything on this page works with any MaxTo command — bind another button to recall all for one-press desktop cleanup, or fit window to snap the active window to the grid. The full list is in the command line reference.