DocsCodeScreenshot

Auto-capture a screenshot in RunMacro

Desktop ModeBrowser ModeRunMacro RunnerRunMacro 3.5+

The Screenshot command captures the full screen or a region and saves a PNG to a folder with a sequential or random name.

Dialog & quick setup

RunMacro Screenshot command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Screenshot command in RunMacro.
  1. Add a Code › Screenshot command.
  2. Choose the save folder and capture mode (full / region).
  3. For region: enter X, Y and width, height.
  4. Choose the naming mode (sequential / random). Save.

Options reference

Save folder

Where to save the PNG. Must already exist.

Capture mode (full / region)

Capture the whole screen, or a region by coordinates and size.

X, Y + Width, Height (region)

Define the region to capture in region mode.

Naming (sequential / random)

Name files sequentially (1.png, 2.png...) or with a random number.

Modes & when to use

Desktop Mode
Browser Mode

Runs in the background through Chrome CDP: the command captures the page inside Chrome instead of the whole screen.

RunMacro Runner

Best for

  • Save step-by-step evidence during a run.
  • Capture results/state to review later.
  • Grab a specific region for image processing.

Use an alternative when

  • Do not use it when the screen contains sensitive data or only a specific browser element should be captured.
Before you run
  • Add Screenshot to the macro.
  • Prepare the data or target that Screenshot will use.

Example workflow

Example: capture the full screen each step

  1. Screenshot, folder C:\Shots, full screen, sequential naming.
  2. Place after key steps to save evidence.
Expected result: After execution, Screenshot completes the described action and makes its result available to the next step.

Tips & limitations

In normal mode, the RunMacro window is briefly hidden so it does not appear in the shot.
  • Output depends on current screen, DPI, multiple monitors, and capture permission; covered windows appear as displayed.

Applies to RunMacro 3.5+ · Desktop Mode & Browser Mode & RunMacro Runner · Windows 10/11

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.