Skip to content

Tego Bot API Documentation v0.1.1


Tego Bot API Documentation / getMousePos

Function: getMousePos()

getMousePos(): MousePosition

Defined in: index.ts:217

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.