Docs

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.

Docs Window Move / Resize Window
📐 Window

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#

RunMacro Move / Resize Window command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Move / Resize Window command in RunMacro.

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#

  1. Add a Window › Move/Resize Window command.
  2. Pick the target window.
  3. Choose a state: Normal (set X/Y + width/height), Maximize, or Minimize.
  4. For Normal, enter the desired position and size.
  5. Save.

Every option explained#

Window title#

The window to move/resize.

State (Normal / Maximize / Minimize)#

Normal uses X/Y and size; Maximize/Minimize ignore coordinates.

X, Y coordinates#

Top-left position of the window (in Normal state).

Width, Height#

The window size. Set 0 to keep the current size and only move it.

Bring to front first (switch before)#

Focus the window before moving/resizing for more reliable results.

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#

  1. Move/Resize Window, pick the target, Normal state.
  2. Set X=0, Y=0, Width=1280, Height=720.
  3. 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#

Fixing the window size keeps coordinate-based Mouse Click accurate every run.
Some windows running as Admin may refuse to move — run RunMacro with a matching privilege.

Verification details#

  • commands/window.py
RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.