Closed meisken closed 1 year ago
Show the color hex value
X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 73 (X_GetImage) Serial number of failed request: 7 Current serial number in output stream: 7
const mousePos = robot.getMousePos(); const pixelColor = robot.getPixelColor(mousePos.x , mousePos.y) ; console.log(pixelColor);
I just install Robotjs and try it on Ubuntu which is on Virtual Machine. This code works on windows.
I’m pretty sure you’re running Wayland, which is not supported. Try switching to XWayland on your login screen.
Thank you so much!!!!!!!! It works after I switch to "Ubuntu on Xorg"
Expected Behavior
Show the color hex value
Current Behavior
Steps to Reproduce (for bugs)
Context
I just install Robotjs and try it on Ubuntu which is on Virtual Machine. This code works on windows.
Your Environment