RunMacro Documentation
Create your first robot, then go further as needed.
Clear step-by-step guides to create, run, and improve robots for repetitive computer work.
Move and resize a window in RunMacro
The Move/Resize Window command places a window at the exact position and size you want, or maximizes / minimizes / restores it.
Prerequisites#
- Add Move / Resize Window to the macro.
- Prepare the data or target that Move / Resize Window will use.
Supported modes#
- Desktop Mode
What it does#
The Move/Resize Window command places a window at the exact position and size you want, or maximizes / minimizes / restores it. RunMacro compensates for invisible borders so the visible bounds land precisely.
Screenshots & video#

When to use it#
- Pin a window position/size so coordinate clicks stay stable.
- Arrange several windows side by side.
- Maximize a window before acting for clarity.
- Minimize an unneeded window.
When not to use it#
- Do not use it for system-managed windows or windows that must remain maximized/fullscreen.
Configuration steps#
- Add a Window › Move/Resize Window command.
- Pick the target window.
- Choose a state: Normal (set X/Y + width/height), Maximize, or Minimize.
- For Normal, enter the desired position and size.
- Save.
Every option explained#
Expected result#
After execution, Move / Resize Window completes the described action and makes its result available to the next step.
Real example#
Example: dock a window at top-left 1280x720#
- Move/Resize Window, pick the target, Normal state.
- Set X=0, Y=0, Width=1280, Height=720.
- Save and run — the window snaps to a stable position/size for clicking.
Limitations and failure cases#
- DPI, size constraints, multiple monitors, and off-screen coordinates can change the result.
Tips & common mistakes#
Verification details#
commands/window.py
