Skip to content

Tego Bot API Documentation v0.1.1


Tego Bot API Documentation / moveMouse

Function: moveMouse()

moveMouse(x, y): void

Defined in: index.ts:86

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.