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
#!/usr/bin/env node
constrobot=require('robotjs')// Get mouse position.constmouse=robot.getMousePos()// Get pixel color in hex format.console.log(mouse)consthex=robot.getPixelColor(mouse.x,mouse.y)
if you have 3 monitors
{ x: 5825, y: -145 }
and x > 6000
it Segmentation fault: 11
Context
Your Environment
RobotJS version:
"robotjs": "^0.3.7"
Node.js version:
nvm use 8.9
Now using node v8.9.0 (npm v5.5.1)
npm version:
Operating System:
macOs
The text was updated successfully, but these errors were encountered:
Expected Behavior
Current Behavior
if you have 3 monitors
{ x: 5825, y: -145 }
and x > 6000
it
Segmentation fault: 11
Context
Your Environment
nvm use 8.9
Now using node v8.9.0 (npm v5.5.1)
macOs
The text was updated successfully, but these errors were encountered: