Syntax
Description
Releases a previously pressed mouse button at absolute screen coordinates. Must be paired with mouse-down to complete manual mouse operations.The button type must match the button used in the preceding
mouse-down command.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 release:
left- Primary buttonright- Secondary buttonmiddle- Middle button (scroll wheel)
Examples
Release left button
Release right button
Complete drag operation
Multi-step drag with pause
Release after long press
Use Cases
- Complete manual drag operations started with
mouse-down - Release button after timed hold for gestures
- Implement complex multi-button sequences
- Fine-grained mouse state control for custom interactions
- Cleanup after interrupted operations
Common Patterns
Standard Drag
Long Press
Multi-stage Drag
Related Commands
- mouse-down - Press button (required pair)
- mouse-move - Move cursor during drag
- mouse-click - Complete press-release in one command
- drag - High-level drag with automatic press/release
- wait - Pause between mouse operations