Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more

Autopilot Deno

stars issues ci releases deno version

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");