Skip to content

Tego Bot API Documentation v0.2.0


Tego Bot API Documentation / moveMouseSmooth

Function: moveMouseSmooth() ​

moveMouseSmooth(x, y, speed?): void

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

Move the mouse cursor smoothly to the specified coordinates with easing animation

Parameters ​

x ​

number

X coordinate in pixels

y ​

number

Y coordinate in pixels

speed? ​

number

Optional movement speed multiplier (default: 3.0, higher = faster)

Returns ​

void

Example ​

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

// Smooth movement with default speed
moveMouseSmooth(500, 500);

// Faster smooth movement
moveMouseSmooth(500, 500, 5.0);

Released under the MIT License.