I have a problem with RobotJs i have an error :
"Uncaught Error: %1 nest pas une application Win32 valide.
C:\Users\antoine\Desktop\testNW\node_modules\robotjs\build\Release\robotjs.node"
This problem happens with NodeWebKit. Howewer , when i run this script with node without NodeWebKit i haven't problem.
Example:
C:\Users\antoine\Desktop\testNW>node index.js
Mouse is at x:1281 y:132
file index.js
var robot = require("robotjs");
//Get the mouse position, returns 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();
Thank you in advance for your help,