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

x/litebot/modules/mouse.ts>moveMouse

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 moveMouse
import { moveMouse } from "https://deno.land/x/litebot@v0.4.4/modules/mouse.ts";

Moves the mouse relative to the current position. values are relative to the current mouse position.

Examples

setMousePos (500, 500); // => {x: 500, y: 500} moveMouse (100, -150); // -> {x: 600, y: 650}; // right 100 & down 150 moveMouse (0, 400); // -> {x: 600, y: 250}; // up 400

type

(x: number, y: number) => void