DocsMouseMouse Button

Mouse button down & up (drag) in RunMacro

Desktop ModeBrowser ModeRunMacro 3.5+

Mouse Button presses or releases one button as a separate event for controlled drag sequences.

Dialog & quick setup

RunMacro Mouse Button command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Mouse Button command in RunMacro.
  1. Add a Mouse › Mouse Button command.
  2. Choose the action: Down (press) or Up (release).
  3. Choose the button: Left / Right / Middle.
  4. Set the X, Y coordinates with F2.
  5. Save. For drag & drop, create 3 steps: Button Down → Mouse Move → Button Up.

Options reference

Action (Down / Up)

Down presses and holds the button; Up releases it.

Button (Left / Right / Middle)

Which button to press or release.

X, Y coordinates

Where to press/release. Use F2 to capture.

Modes & when to use

Desktop Mode
Browser Mode

Runs in the background through Chrome CDP: the command dispatches a mouse-down or mouse-up event into the page at viewport coordinates.

Best for

  • Drag & drop: Down at A → Move to B → Up at B.
  • Hold the button to select/highlight a region.
  • Split press and release for precise control.

Use an alternative when

  • Only an immediate click is needed; use Mouse Click instead.
  • The workflow cannot guarantee matching Down and Up events.
Before you run
  • The target application is ready to receive mouse events.
  • The coordinates and button action are configured.

Example workflow

Example: drag and drop an icon

  1. Mouse Button Down (left) at the icon.
  2. Mouse Move to the destination.
  3. Mouse Button Up (left) at the destination to drop.
Expected result: The selected mouse button is pressed or released at the configured coordinates.

Tips & limitations

Always pair every Down with an Up, otherwise the button stays stuck in the held state.
Add a short Wait between Down → Move → Up for a more reliable drag.
  • Down and Up should be paired to avoid an unintended held state.
  • Coordinates depend on layout and window position.

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.