Skip to content

Mouse Wheel ​

Execute mouse wheel scroll operation, used to scroll pages or content areas.

Interface Description ​

Interface Type ​

mouseWheel

Parameters ​

ParameterTypeRequiredDescription
deviceIdstring✅Device ID
tiltnumber✅Scroll amount, positive scrolls up, negative scrolls down

tilt Parameter Description ​

Value RangeDescriptionScroll Direction
Positive (e.g., 120)Scroll up⬆️ Page scrolls up (content moves down)
Negative (e.g., -120)Scroll down⬇️ Page scrolls down (content moves up)

Return Value ​

javascript
true  // Returns true on successful operation

Basic Usage ​

javascript
// Scroll down
await apiInvoke('mouseWheel', {
    deviceId: 'P72578581E07',
    tilt: -120  // Negative = scroll down
});

// Scroll up
await apiInvoke('mouseWheel', {
    deviceId: 'P72578581E07',
    tilt: 120  // Positive = scroll up
});

Cooperation: try.catch@foxmail.com