Skip to main content
Control mouse input to interact with GUI applications. Mouse control enables clicking, moving, dragging, and scrolling operations.

Overview

Mouse control enables:
  • Clicking buttons and UI elements
  • Moving cursor to specific positions
  • Dragging and dropping elements
  • Scrolling windows and content
Desktop automation requires a template with desktop support. Ensure your sandbox has desktop capabilities enabled.

Clicking

Click at a specific position on the screen:

Moving Cursor

Move the mouse cursor to a specific position:

Dragging

Drag from one position to another:

Scrolling

Scroll the mouse wheel:

Mouse Buttons

Available mouse buttons:
  • "left" - Left mouse button (default)
  • "right" - Right mouse button
  • "middle" - Middle mouse button (scroll wheel)

Complete Example

Automate a simple GUI interaction:

Coordinate System

Mouse coordinates use screen pixels:
  • Origin (0, 0): Top-left corner of the screen
  • X-axis: Increases from left to right
  • Y-axis: Increases from top to bottom
Use screenshots to identify exact coordinates of UI elements before automating interactions.

Next Steps