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
- Comprehensive bindings for AutoIt functions
- Fully documented API
- First class TypeScript support
- First class async/await support
Example Usage
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();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.