Getting Started
Install RobotJS using npm:
npm install robotjs
It’s that easy! npm will download one of the prebuilt binaries for your OS.
You can get npm here if you don’t have it installed.
If you need to build RobotJS, see the building section. Instructions for Electron.
RobotJS 0.8
RobotJS 0.8 adds:
- Image and color search, including exact or tolerance-based matching inside a screen capture or loaded image.
- Built-in BMP loading and saving plus optional PNG support.
- Display enumeration and display-aware capture for multi-monitor desktops and high-density screens.
- Improved keyboard handling, including automatic Shift and AltGr selection for
typeStringon Linux and complete modifier press/release lifecycles for shortcuts.
Start with the image search example or browse the complete API reference.