Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/litebot/modules/mouse.ts>getMousePos

A Deno library for interacting with the mouse 🖱️ keyboard ⌨️ and screen 💻. Provides a simple API for creating kbm events, macros, & working with displays. Leverages FFI & C providing high performance while maintaining a simple TypeScript API
Latest
variable getMousePos
import { getMousePos } from "https://deno.land/x/litebot@v0.4.4/modules/mouse.ts";

Gets the current mouse position in screen space. This will return a object containing both the x and y value of -1 if the operation failed.

NOTE* This could change in the future.

Examples

// Successful call getMousePos (); - { x: number, y: number } // failed call getMousePos (); - { x: -1, y: -1 }