- 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
- 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 theopen resizearguments. - 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
- Right-click the desktop → New → Shortcut.
- As the location, enter (arguments included):
"%LocalAppData%\MaxTo\current\MaxTo.exe" open resize - Name it something like
MaxTo resizeand 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:
- Open Logi Options+ and select your mouse.
- Pick the button to rebind and choose Keystroke assignment.
- Record your resize shortcut — Win + Alt + Space.
Razer Synapse
Synapse can launch both programs and shortcut files:
- Open Synapse → your mouse → the button you want to rebind.
- Choose Launch → Launch Program and browse to the
MaxTo resizeshortcut you created above.
Corsair iCUE
- Open iCUE → your mouse → Key Assignments.
- Assign the button an App Launch action pointed at the
MaxTo resizeshortcut — or record a macro that presses Win + Alt + Space.
SteelSeries GG
- Open SteelSeries GG → Engine → your mouse.
- Bind the button to Launch Application with the
MaxTo resizeshortcut — or use a macro that sends Win + Alt + Space.
X-Mouse Button Control
XMBC passes arguments directly, no shortcut file needed:
- Pick the button and choose Launch Application from its dropdown.
- 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") 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.