Mouse Up
Release mouse button at specified coordinate position.
Interface Description
Interface Type
mouseUpParameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
deviceId | string | ✅ | - | Device ID |
x | number | ✅ | - | Release X coordinate (pixels) |
y | number | ✅ | - | Release Y coordinate (pixels) |
key | string | ❌ | 'LEFT' | Mouse button type |
key Parameter Values
| Value | Description |
|---|---|
LEFT | Left button (default) |
RIGHT | Right button |
MIDDLE | Middle button |
EXTRA1 | Extra button 1 |
EXTRA2 | Extra button 2 |
EXTRA3 | Extra button 3 |
EXTRA4 | Extra button 4 |
EXTRA5 | Extra button 5 |
Return Value
javascript
true // Returns true on successful operationBasic Usage
javascript
// Release left button at coordinate (200, 300)
await apiInvoke('mouseUp', {
deviceId: 'P72578581E07',
x: 200,
y: 300
// key defaults to 'LEFT'
});