I'd like to use Keyboard Maestro to perform a right-click at the current text cursor (not mouse pointer) location.
What I'm trying to achieve is: in Microsoft Word, if I type a word incorrectly, I want to use the keyboard arrows to move the text cursor back over the word that's now highlighted in red, and press a key shortcut to right-click it, so that I can choose a correction from the list that appears.
Unfortunately the macOS does not, in general, provide the location of the text cursor.
But here's a solution that brings up the Word Spell Check. Maybe that will work for you:
Below is just an example written in response to your request. You will need to use as an example and/or change to meet your workflow automation needs.
Thanks for your reply. It's a real shame macOS doesn't allow this to happen.
I found that if I added five presses of the Tab key to the end of your macro, this moves the focus so that I could then use the arrow keys to manually select the correct AutoCorrect entry.