Skip to content

Tego Bot API Documentation v0.2.0


Tego Bot API Documentation / moveMouse

Function: moveMouse() ​

moveMouse(x, y): void

Defined in: botjs/src/index.ts:64

Move the mouse cursor to the specified coordinates instantly

Parameters ​

x ​

number

X coordinate in pixels

y ​

number

Y coordinate in pixels

Returns ​

void

Example ​

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

// Move to absolute position
moveMouse(100, 200);

Released under the MIT License.