You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 + " y:" + mouse.y);
this is my code, it's just a small thing that should tell me the coordinates and color code of where the cursor is. instead it outputs the coordinates and then "Segmentation fault (core dumped)"
where is this issue? in my node install? or would it be my build of robot.js?
The text was updated successfully, but these errors were encountered:
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 + " y:" + mouse.y);
this is my code, it's just a small thing that should tell me the coordinates and color code of where the cursor is. instead it outputs the coordinates and then "Segmentation fault (core dumped)"
where is this issue? in my node install? or would it be my build of robot.js?
The text was updated successfully, but these errors were encountered: