AutoIt JS

AutoIt JS

Node.js bindings for AutoIt
Published on:
Status: complete

Tech Stack

TypeScript Koffi

AutoIt JS is a wrapper library that provides JavaScript bindings for the popular Windows automation tool AutoIt. It leverages Koffi , a Foreign Function Interface (FFI) for Node.js, to call AutoIt’s functions right out of AutoItX3.dll. The main goal of the project was to allow automation in testing frameworks like Cypress and Playwright where controlling native Windows applications is not possible otherwise.

Features

Example Usage

TS
import {
  Init,
  Run,
  Send,
  WinClose,
  WinWaitActive,
  autoit,
} from "@ahmic/autoit-js";

autoit.load();

await Init();
await Run("notepad.exe");
await WinWaitActive("[CLASS:Notepad]");
await Send("Hello, World!");
await WinClose("[CLASS:Notepad]");

autoit.unload();
Click to expand and view more

Status

The library is complete and fully functional. All AutoIt functions have been mapped and documented. It is being actively maintained and updated as needed, though no new features are currently planned.

Start searching

Enter keywords to search articles

↑↓
ESC
⌘K Shortcut