Skip to main content

Autopilot Deno

stars issues ci releases

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…

Usage

NOTE: Currently, I have not published plugins for Ubuntu as there are some error while building on Github actions.

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