DocsMouseMouse Click

Mouse Click Command Reference (Coordinates & F2 Capture)

Desktop ModeBrowser ModeRunMacro 3.5+

Mouse Click triggers a left click, double click, or right click at saved X, Y coordinates (or the live pointer position) — running in both Desktop Mode and Chrome CDP Browser Mode.

Dialog & quick setup

RunMacro Mouse Click command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Mouse Click command in RunMacro.
  1. In RunMacro Studio, click Add and choose Mouse › Mouse Click.
  2. Click Pick Coordinate on Screen (Press Space) or hover over the target and press F2 to capture X, Y coordinates.
  3. To click wherever the pointer already sits, check Click at current mouse position.
  4. Choose the click type: Left Click (Default), Double Click, or Right Click.
  5. Configure Delay after command (Min–Max, default 500–1500 ms) or check No delay (0ms), and optionally override On Error Action.
  6. Switch to Advanced (Human-like) if you need offset jitter or micro-delay, then click Save.

Options reference

General tab

Pick Coordinate on Screen (Press Space) / F2

Click the primary button (or press Space) to pick a screen point, or hover over the target and press F2. In Browser Mode, the dialog switches to Pick CDP Coordinate and Test CDP Position.

Coordinates X, Y & {x} variable picker

Pixel coordinates measured from the top-left of the screen (or viewport in Browser Mode). Click the {x} picker beside each field to pass workflow variables such as {x} and {y}.

Click at current mouse position

Disables the X, Y inputs and clicks wherever the pointer currently rests. Useful directly after a pointer-positioning step.

Click type (Left Click / Double Click / Right Click)

Segmented selector for Left Click (Default), Double Click, and Right Click. For pointer movement without clicking, use Mouse Move; for middle-button actions, use Mouse Button.

Delay after command

Random wait chosen between Min and Max after the click (default 500–1500 ms) so the UI can respond. Check No delay (0ms) to advance immediately.

On Error Action (When Command Fails)

Choose Use Workflow default or override how RunMacro handles a failure on this specific click step.

Advanced (Human-like) tab

Human-like preset & Position offset (± px)

Toggle the quick natural-timing preset (±3 px, 30–150 ms) or tune position offset from 1 to 50 px. Skipped automatically when running in Chrome CDP Browser Mode.

Micro-delay before click (Min / Max ms)

Adds a short randomized pause (0–5000 ms, default 30–150 ms) right before pressing the button.

More options: Random Horizontal / Vertical (+/- px) & Step label

Expand More options for independent horizontal/vertical pixel spread around X, Y, or add an optional Step label to identify this click inside long workflows.

Modes & when to use

Desktop Mode

Moves and clicks the Windows system cursor, briefly taking control of the physical mouse.

Browser Mode

Dispatches clicks directly to Chrome viewport coordinates via CDP without taking over your mouse. Position offset and Random X/Y are skipped in this mode.

Best for

  • Click buttons, inputs, or toolbar icons that stay at a fixed screen position.
  • Choose Double Click to open files, folders, or select a word.
  • Choose Right Click to open a context menu.
  • Click at the live cursor position right after a Mouse Move or Find Image step.

Use an alternative when

  • The target element moves when scrolling or resizing the window.
  • You need uninterrupted use of your physical mouse during a Desktop Mode run.
  • The clickable hitbox is narrower than your configured position offset.
Before you run
  • The target window is visible on screen (Desktop Mode) or attached via Chrome CDP (Browser Mode).
  • Coordinates were captured with F2/Space or supplied via valid numeric variables.

Example workflow

Example: click a fixed "Sign in" button

  1. Add a Mouse Click step to your workflow.
  2. Hover over the "Sign in" button and press F2 to capture its X, Y coordinates.
  3. Keep Left Click (Default) and set Delay after command to 800–1200 ms so the page can load.
  4. Click Save and test — RunMacro clicks the button and pauses before the next step.
Expected result: RunMacro performs the chosen click at the configured point, then waits for Delay after command before continuing.

Tips & limitations

When a button shifts across screen sizes or dynamic layouts, prefer Smart Click, Find Image, or Smart HTML over fixed coordinates.
After changing monitor resolution, Windows DPI scaling, or window placement, reopen the dialog and re-capture coordinates with F2.
  • In Desktop Mode, clicks miss if another window covers the target or the app has not finished rendering.
  • When coordinates come from {x} or {y} variables, an empty or non-numeric resolved value triggers On Error Action.
  • In Chrome CDP Browser Mode, human-like offset jitter in the Advanced tab is ignored.

Applies to RunMacro 3.5+ · Desktop Mode & Browser Mode · 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.