When trying to get pixel color from the desktop, it only returns the pixel color from the desktop background image/wallpaper. Any window or app etc color is always ignored.
I am not sure what I am missing here. Any help is really appreciated.
Expected Behavior
Get the pixel color from anything under the mouse. In my case, color from app UI, see red circle on the screenshot.
Current Behavior
Getting the pixel color from only the desktop background image. Any window, app icons, etc are ignored.
For anyone coming to this issue in the future. The solution involves granting access to the terminal/application running robotjs via Settings > Security & Privacy > Privacy > Screen Recording.
When trying to get pixel color from the desktop, it only returns the pixel color from the desktop background image/wallpaper. Any window or app etc color is always ignored.
I am not sure what I am missing here. Any help is really appreciated.
Expected Behavior
Get the pixel color from anything under the mouse. In my case, color from app UI, see red circle on the screenshot.
Current Behavior
Getting the pixel color from only the desktop background image. Any window, app icons, etc are ignored.
Steps to Reproduce (for bugs)
Here is my code:
function colorEyeDropper(){
function process_iHook_mouseClick(){
Context
I am creating a color eyedropper tool for adobe app. It will pick color from anywhere on the desktop.
Your Environment