Skip to content

Mouse Up ​

Release mouse button at specified coordinate position.

Interface Description ​

Interface Type ​

mouseUp

Parameters ​

ParameterTypeRequiredDefaultDescription
deviceIdstring✅-Device ID
xnumber✅-Release X coordinate (pixels)
ynumber✅-Release Y coordinate (pixels)
keystring❌'LEFT'Mouse button type

key Parameter Values ​

ValueDescription
LEFTLeft button (default)
RIGHTRight button
MIDDLEMiddle button
EXTRA1Extra button 1
EXTRA2Extra button 2
EXTRA3Extra button 3
EXTRA4Extra button 4
EXTRA5Extra button 5

Return Value ​

javascript
true  // Returns true on successful operation

Basic Usage ​

javascript
// Release left button at coordinate (200, 300)
await apiInvoke('mouseUp', {
    deviceId: 'P72578581E07',
    x: 200,
    y: 300
    // key defaults to 'LEFT'
});

Cooperation: try.catch@foxmail.com