robot-js
robot-js copied to clipboard
Native system automation for node.js
Backporting the adjustments I applied to my `prebuild` fork to allow build against newer ABIs (Node 11, 12, Electron 5, 6) Still not using Nan - but we are effectively...
`var robot = require("robotjs"); var mouse = robot.getMousePos(); console.log(mouse.x + ', ' + mouse.y); var hex = robot.getPixelColor(mouse.x, mouse.y); console.log("#" + hex + " at x:" + mouse.x + "...
I ran this: ``` digit@mighty-dev MINGW64 ~/Desktop/workspace/proj (suhail/events) $ npm install robot-js ``` Error: ``` npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over...
We've a system and we're running multiple users simultaneously. i.e user1, user2 While using keyboard/mouse events on user1, it is typing characters on user2 display. NOTE: with npm package *robotjs*,...
Hey there. Dispatching keys is not working in games for me. `keyboard.click(robot.KEY_Q);` for example is not doing anything when using it in a game window, it works when trying to...
The API for Node 10 has changed, and the existing robot-js bindings do not compile against it correctly. Testing with Node v10.6.0 on Linux, I get this set of errors:...
Fix is like this, but I cannot find the xdisplay.c in master, so how does node-gyp or such generate that file? ``` char* display = getenv("DISPLAY"); if (display == NULL)...
There is unable to extend classes ```javascript var robot = require('robot-js'); class Window extends robot.Window { constructor(hwnd) { super(hwnd); this.newProperty = 'hello'; } newFeature(){} } var wnd = new Window();...
I want to realize window "blink" effect making focus on and off. I've tried to realize by setting `active` to window and then to desktop, but active sets only if...
I am working on a project where I need to press multiple keys at the same time. I have tried things like. ``` keyboard.press(robot.KEY_W); keyboard.click(robot.KEY_S); keyboard.release(robot.KEY_W); ``` It doesn't hit...