I agree with you that there are at least 4 options better than using OCR to locate a word on the screen. And I agree that Jone probably should be trying those options. And I thank you for helping him consider better options.
Your approach is useful and appropriate, given the initial proposition of wanting to click "text", but as the target is actually a button, life gets a lot simpler, and the relatively long execution time of something as sophisticated as incremental OCR can be avoided.
Yes, you are right. And whenever I give advice, I constantly have to decide whether to answer the question directly, or to try to kindly tell them that they may be going down a wrong path. I'm sure at least half of all user questions involve trying to go down the wrong path. But, sometimes, it's better to let the user find out the hard way.
One of the problems I face is when I want to click an image but the background color changes a bit.
In this case, the macro doesn't work as it doesn't recognize the image as the same. Any help?
In such a case, I would prefer to click on the text rather than the image since the text is the same.
For your reference: This is to enable Voice Control on Mac from the menu dropdown.
As the background changes (desktop vs Chrome and other apps), the color of the menu dropdown also changes.