Skip to content

Move Cursor

Move device cursor to specified coordinate position.

Interface Description

Interface Type

mouseMove

Parameters

ParameterTypeRequiredDescription
deviceIdstringDevice ID
xnumberTarget X coordinate (pixels)
ynumberTarget Y coordinate (pixels)

Return Value

javascript
true  // Returns true on successful operation

Basic Usage

javascript
// Move cursor to coordinate (300, 400)
await apiInvoke('mouseMove', {
    deviceId: 'P72578581E07',
    x: 300,
    y: 400
});

Cooperation: try.catch@foxmail.com