//SCHEIGHT and SCWIDTH are variables
var img = robot.screen.capture(SCWIDTH[0] - 10, SCHEIGHT[0] - 10, SCWIDTH[1] + 10, SCHEIGHT[1] + 10);
Expected Behavior
Screenshot should be taken, and img should return a bitmap.
Current Behavior
Terminal gives me Segmentation fault: 11 error
Possible Solution
Switch to Windows. I have a partition, but I'd rather be able to do this from my Mac
Give Screen Sharing permissions to Terminal (Whose prompt I can't seem to trigger even after taking the nuclear option and clearing every permission)
Steps to Reproduce (for bugs)
Use MacOS
Create a JS file
Install Robot
Run robot.screen.capture()
Context
I'm trying to take a screenshot and filter through each color for a specific HEX value, however, I can't take a screenshot to look through. I've tried getPixelAt() bu it's extremely slow for what i'm trying to accomplish.
Code:
Expected Behavior
Screenshot should be taken, and
img
should return a bitmap.Current Behavior
Terminal gives me
Segmentation fault: 11
errorPossible Solution
Steps to Reproduce (for bugs)
robot.screen.capture()
Context
I'm trying to take a screenshot and filter through each color for a specific HEX value, however, I can't take a screenshot to look through. I've tried
getPixelAt()
bu it's extremely slow for what i'm trying to accomplish.Your Environment