-1
我有RobotJs一個問題,我有一個錯誤:與NodeWebKitNodeWebKit與RobotJS錯誤的Win32
"Uncaught Error: %1 nest pas une application Win32 valide.
C:\Users\antoine\Desktop\testNW\node_modules\robotjs\build\Release\robotjs.node"
發生此問題。 不過,當我運行這個腳本與節點沒有NodeWebKit我沒有問題。
例子:
C:\Users\antoine\Desktop\testNW>node index.js
Mouse is at x:1281 y:132
文件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();
預先感謝您的幫助,
嗨,我用NW-GYP但我發現這個問題。顯然,當我用NW 64位版本,我有問題,與32位版本沒有問題。 –