Docs/ Reference/ Command line
Reference

Command line

Every command MaxTo.exe understands, and how the single-instance model runs them.

Applies to MaxTo 3.1 and laterBinary MaxTo.exe

Commands

CommandWhat it does
MaxTo.exe open resizeOpens the resize overlay for the active window.
MaxTo.exe open settingsOpens the Settings window.
MaxTo.exe recall windowMoves the active window back to its remembered position.
MaxTo.exe recall allMoves every window with a remembered position back into place.
MaxTo.exe fit windowSnaps the active window to the closest grid cells.
MaxTo.exe exitQuits MaxTo.

Commands are case-insensitive, and must match exactly and fully — MaxTo.exe recall is not a command.

recall window and fit window act on the window that is active at the moment the command runs. recall window does nothing if that window’s application has no remembered position.

fit window is the command id of the shortcut called Fit to grid in Settings.

Single instance

MaxTo runs as a single instance, and commands are messages to it:

  • If MaxTo is running, the command is delivered to the running app.
  • If it isn’t, MaxTo starts in the background first, then runs the command.
  • Launching MaxTo.exe with no command doesn’t start a duplicate — it opens the Settings window of the running instance (or starts MaxTo, if it wasn’t running).

Where MaxTo.exe lives

Install methodPath
Installer%LocalAppData%\MaxTo\current\MaxTo.exe
Portable zipWherever you unpacked it
ScoopThe maxto shim is on PATH — run maxto open resize from anywhere

Anything that can run a command can drive MaxTo — see Open the resize overlay from a mouse button for bindings in the popular mouse drivers.