Went in and manually enabled the Screen Recording security setting in Preferences
Adjusted the "fuzz" a few different ways
Done a "Capture All Screens" action before this, just in case there was some preference in macOS that still wasn't activated (per a suggestion from Peter in another post)
Done a "pause for 2 seconds" before my "found image" action
Done a "pause until...." with a "found image" condition, using the same image and various "fuzz" settings
I'm hoping I'm missing something very, very simple. Can anybody shed some light on this?
ETA: Incidentally, this is an image in a popup (the "sharing" popup from Finder), if that matters.
I felt this was a pretty isolated section of the macro, but if context is helpful:
KM right-clicks.
Using a pixel-based offset, it moves the mouse and clicks a menu option that brings up the "Sharing" sub-menu.
Again using a pixel-based offset, it moves the mouse and clicks the menu option for "Add People".
That brings up this popup:
That part is all rock-solid and reliable. And in fact, I've disabled everything in the macro before the step I originally posted, brought the screen up myself manually, then triggered KM with the above-mentioned action as the first action in the script - and the issue persists.
It should be moving the mouse and clicking the "Copy Link" button, but it's not.
KM has permission to record the screen, which I've seen mentioned elsewhere as a potential issue. And as mentioned above, I've adjusted the fuzzy matching slider, increased pauses, but it seems to be an issue with KM detecting the image.
Reduce Transparency is checked in System Preferences -> Accessibility -> Display
Here's what's on my screen right now. The thing I'm trying to click is over on the left; the KM window is on the right.
For troubleshooting / isolation, I'm just asking KM to move the mouse over to the image. Just something to give me a visual clue that it's working.
With this exact screen setup, I click "Run" and I get the "Move or Click Mouse no unique image found" error. I've tried different levels of "fuzz" to try to help the match, and it doesn't seem to help.
The action you've shown above just does a move, not a click, so I would say that not clicking is exactly what you've told KM to do. Or is there something else I'm being dumb about?
The image I'm searching for is a screenshot of the thing I'm searching for, saved as a PNG - so I'd like to hope it would be good - but I double-checked.
As for "bigger chunk", I actually had it search for the contents of the whole "Add People" popup. So that's a good-sized chunk.
Time for a bug report to Peter? Should I submit it and just link him to this thread?
Previously, users with similar issues have found that rebooting their Mac and occasionally reinstalling KM has helped - sometimes. I know, it sounds like desperation! Are you up to trying that?