Cross-platform desktop automation module for Deno.
MIT License
AutoPilot Deno - Cross-platform desktop automation framework for Deno.
Keyboard
.type
.tap
.toggleKey
Mouse
.moveMouse
.click
.scroll
.mousePosition
.pixelColor
Screen
.screenshot
.screenSize
.screenScale
Notifications
.alert
.notify
Detailed documentation of the API is available at:
sudo apt-get update
sudo apt-get install libdbus-1-dev x11-xserver-utils wmctrl libxtst-dev cmake libc-dev libx11-dev libxcb1-dev
deno run --unstable --allow-ffi example.ts
// example.ts
import AutoPilot from "https://deno.land/x/autopilot/mod.ts";
const pilot = new AutoPilot();
// type a string
await pilot.type("Yay! This works");
// get screen size
const screenSize = await pilot.screenSize();
// move mouse
await pilot.moveMouse(200, 400);
// take a screenshot
await pilot.screenshot("screenshot.png");
// ...and more stuff