Tego Bot API Documentation v0.2.0
Tego Bot API Documentation / scrollMouse
Function: scrollMouse()
scrollMouse(
x,y):void
Defined in: botjs/src/index.ts:178
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);