BlueM / cliclick

macOS CLI tool for emulating mouse and keyboard events
https://www.bluem.net
Other
1.59k stars 116 forks source link

iTerm 2 prints color of macOS desktop wallpaper instead of overlying window #139

Closed eomcb closed 2 years ago

eomcb commented 2 years ago

Hello, when using iTerm 2 (with /bin/bash), cliclick cp:x,y prints the color of the macOS desktop wallpaper instead of the overlying window.

When using the default Apple Terminal app (/bin/bash), the same command prints the color of the window as expected.

What could be the cause for this and what setting could I set in iTerm2 to get the color at the given coordination of the overlying window?

Please cf. attached screenshot for more details. screenshot

Thank you in advance

BlueM commented 2 years ago

This can happen if iTerm does not have the permission to record the screen (but Terminal has). See the Security system preference.

eomcb commented 2 years ago

@BlueM, thank you for pointing me in the right direction, problem solved. Best regards