Repository
Current version released
4 years ago
Autopilot Deno
AutoPilot is a simple cross-platform desktop automation library for Deno.
Features
- Type a string using
.type
- Simulate mouse movement using
.moveMouse
- Get screen size using
.screenSize
- Alert box using
.alert
- Capture screen using
.screenshot
Documentation
In progressโฆ
Requirements
Linux
sudo apt-get update
sudo apt-get install libxtst-dev cmake libc-dev libx11-dev libxcb1-dev
Windows
Run cmd as adminsirator
Usage
NOTE: Prebuilt binaries are automatically downloaded the first time you import Autopilot in your project and are cached.
import AutoPilot from 'https://raw.githubusercontent.com/divy-work/autopilot-deno/master/mod.ts';
// create a new AutoPilot instance.
var pilot = new AutoPilot();
// type a string
pilot.type("Yay! This works");
// alert something
pilot.alert("This is a alert");
// get screen size
pilot.screenSize();
// move mouse
pilot.moveMouse(200, 400);
// take a full-screen screenshot
pilot.screenshot("screenshot.png");