Skip to content

Tego Bot API Documentation v0.2.0


Tego Bot API Documentation / getMousePos

Function: getMousePos()

getMousePos(): MousePosition

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

Get the current mouse cursor position

Returns

MousePosition

Object containing x and y coordinates

Example

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

const pos = getMousePos();
console.log(`Mouse is at: ${pos.x}, ${pos.y}`);

Released under the MIT License.