Syntax
Description
Performs a mouse click at absolute screen coordinates. Supports left, right, and middle buttons, as well as double and triple clicks.Parameters
Absolute screen coordinates in format
x,y (e.g., 500,300). Coordinates are measured from the top-left corner of the primary display.Mouse button to use:
left- Primary buttonright- Secondary button (context menu)middle- Middle button (scroll wheel click)
Number of clicks to perform:
1- Single click2- Double click3- Triple click
Examples
Single left-click
Right-click for context menu
Double-click
Triple-click with middle button
Use Cases
- Click precise pixel coordinates not exposed via accessibility
- Interact with custom-rendered UI (games, design tools)
- Right-click to open context menus at specific locations
- Double-click to open files or select words
- Triple-click to select entire lines or paragraphs
- Middle-click for browser tab operations or paste
Button Types
| Button | Common Use |
|---|---|
left | Primary selection, button activation |
right | Context menus, secondary actions |
middle | Scroll wheel click, paste on Linux |
Related Commands
- click - AX-first element clicking with ref
- right-click - Right-click element by ref
- double-click - Double-click element by ref
- mouse-down - Press without release
- mouse-up - Release button