winapi-js
v1.1.23
Published
> Node.js Desktop Automation for Windows. Precise thread sleep, emulate the mouse and keyboard.
Downloads
29
Readme
winapi-js
Node.js Desktop Automation for Windows. Precise thread sleep, emulate the mouse and keyboard.
Contents
Installation
Install with npm:
npm install winapi-js
Install with yarn:
yarn add winapi-js
Example
const api = require("winapi-js");
api.sleepSync(1.01);
const { x, y } = api.getCursorPos();
api.setCursorPos(x, y);