mechatron-robot-js
v0.0.5
Published
Drop-in robot-js replacement backed by mechatron
Downloads
35
Maintainers
Readme
mechatron-robot-js
Drop-in replacement for robot-js, backed by mechatron.
Installation
npm install mechatron-robot-jsUsage
Replace your existing robot-js require/import with mechatron-robot-js:
// Before:
var robot = require("robot-js");
// After:
var robot = require("mechatron-robot-js");All robot-js 2.2.0 APIs are supported — classes, methods, constants, and
calling conventions (including calling constructors without new).
What's included
This package wraps the modern mechatron
API in a compatibility layer that reconstructs the full robot-js 2.2.0 surface:
callableClass constructors (call with or without new), top-level sleep/
clock, flattened KEY_* and BUTTON_* constants, Module.Segment,
Memory.Stats, Memory.Region nested classes, and getNativeBackend/
setNativeBackend stubs.
Subsystems covered:
- Keyboard — press, release, click, compile, getState
- Mouse — click, press, release, scroll, getPos, setPos, getState
- Clipboard — clear, getText/setText, getImage/setImage, getSequence
- Screen — synchronize, grabScreen, getMain, getList, getTotalBounds
- Window — full CRUD, getList, getActive, isAxEnabled
- Process — open, close, getModules, getWindows, getList, getCurrent
- Memory — read/write (typed + raw), find, getRegions, setAccess
- Module — getSegments, contains, comparison operators
- Data types — Point, Size, Bounds, Color, Range, Hash, Image, Timer
npm alias
To use this as a transparent alias so existing code keeps
require("robot-js"):
npm install robot-js@npm:mechatron-robot-jsLicense
MIT
