Package Exports
- robotjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (robotjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
RobotJS
Node.js GUI Automation.
##Building##
node-gyp configure build
##Examples## Get the mouse location and move it.
var robot = require("robotjs");
//Get the mouse position, retuns an object with x and y.
var mouse=robot.getMousePos();
console.log("Mouse is at x:" + mouse.x + " y:" + mouse.y);
//Move the mouse down by 100 pixels.
robot.moveMouse(mouse.x,mouse.y+100);
//Left click!
robot.mouseClick();
##Progress##
Module | Status | Notes |
---|---|---|
Mouse | 80% | Can't specify mouse button yet. |
Keyboard | Not Started | Send keypress, type string. |
Screen | Not Started | Screenshot, read pixel color, image search. |