Drag a bounding box around something inside the window
Return to Keyboard Maestro, and Command + V the small image into the form
What is very odd is that, If I run a screen capture command, then the resulting screen capture is of just the background image and menu bar, and does not include any desktop icons or application windows which are open.
Yeah I tried that too. I actually tried it on all the notches of fuzziness.
Here's what I'm seeing. I have Google.com site loaded and in the foreground. Just behind it I have the Keyboard Maestro macro and the image fragment of the letter "G" from the Google logo, take from that same page.
I'd expect the macro to evaluate to true, but we can see KM shows the condition is currently false. And running the macro it plays the Basso sound effect.
I disabled transparency as recommended. And tried this with other programs. This results in the same problem.
I know the macro is getting triggered because it plays the designated audio sound. If I change what audio sounds should play in the "then" or "else" section of the "if then" block, and trigger the macro then the "if then" block test still resolves to "false" and only the "else" sound plays. Additionally "(currently false)" is visible in the screenshots.
To show the same problem occurs with other non-chrome applications. Here is Apple TV and where the keyboard KM macro is configured to look for the Fraggle Rock image on the top right. I'm including this image because it shows that Apple TV is the front window, and it shows the current macro configuration.
It's the same problem with Spotify desktop app. Here the macro is configured to look for the play button. Again I'm including this image to show that Spotify is the foreground application.
Here is Apple Music program, with the KM macro configured to look for the red "Play" button in the middle of the screen (not the foreground application). Again, including this image to show the what is visible on screen when the macro is triggered.
The KM macro was configured for "all screens" plural, but I never have an external screen connected to this MacBook Pro, so it only ever has its internal monitor.
I do recognize that many of these applications already have keyboard shortcuts to activate the play button. I'm only using these applications and the play button here to demonstrate the problem. My actual use case for this function is more complex.