Move mouse cursor with node.js
javascript, mouse, node.js
Solution
I've been working on a module for this, RobotJS.
Example code:
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();
It's still a work in progress but it will do what you want!
Problem
Is there is any way or module to move cursor and simulate mouse clicks in windows7/8 with node.js? I found this library https://www.npmjs.org/package/win_mouse but seems like it doesn't work