Skip to content

Tego Bot API Documentation v0.1.1


Tego Bot API Documentation / scrollMouse

Function: scrollMouse()

scrollMouse(x, y): void

Defined in: index.ts:200

Scroll the mouse wheel in horizontal and/or vertical directions

Parameters

x

number

Horizontal scroll amount (positive = right, negative = left)

y

number

Vertical scroll amount (positive = down, negative = up)

Returns

void

Example

typescript
import { scrollMouse } from "@tego/botjs";

// Scroll down
scrollMouse(0, 3);

// Scroll up
scrollMouse(0, -3);

// Scroll right
scrollMouse(2, 0);

Released under the MIT License.