Cross-platform desktop automation framework for Deno.
Keyboard
.type
.tap
.toggleKey
Mouse
.moveMouse
.click
.scroll
.mousePosition
.pixelColor
Screen
.screenshot
.screenSize
.pointVisible
.screenScale
Notifications
.alert
.notify
Monitors
.getMonitors
Window management (only for linux)
.getWindow
.transformByIndex
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
Running your Deno script with AutoPilot requires some flags
deno run --unstable -A file.ts
NOTE: Prebuilt binaries are automatically downloaded the first time you import Autopilot in your project and are cached.
import AutoPilot from 'https://deno.land/x/autopilot@0.2.1/mod.ts';
// create a new AutoPilot instance.
var pilot = new AutoPilot();
// type a string
await pilot.type("Yay! This works");
// alert something
await pilot.alert("This is a alert");
// get screen size
await pilot.screenSize();
// move mouse
await pilot.moveMouse(200, 400);
// take a full-screen screenshot
await pilot.screenshot("screenshot.png");
CACHE
: Set if you want to update the release from Github.DEV
: Set if you want t use the development debug builds.Clone this repo and run cargo build
to produce a development build.
vr test
vr bench
vr fmt
vr build
Contributing code and ideas to AutoPilot is really easy! Create an issue or PR. :)
Author: littledivy
Demo: https://autopilot.mod.land/
Source Code: https://github.com/littledivy/autopilot-deno
#deno #node #nodejs #javascript