Hello! Long time listener, first time poster
As the subject says, I’m curious if there’s a way in macOS (either globally, or in app-specific ways if needed), to trigger an automation of some kind (Keyboard Maestro, Shortcuts, BetterTouchTool, anything) - to automatically position the mouse cursor at the same spot where the keyboard focus cursor is currently located.
My use-case is, that frequently there seems to be functionality hidden under a right-click menu, contextually based on the word under the cursor. So I’m always looking to keep my hands on my keyboard (or Stream Deck), and would love to access these menu options without having to move my hands to my trackpad or mouse, target the mouse cursor to where the keyboard cursor is, and right-click.
For example, in Obsidian, if I type a word and want to add it to my custom dictionary, I’d love be able to just move the keyboard cursor over it and hit a hotkey to pop up the right-click menu, then keyboard down to choose the “Add to dictionary” option.
Or in this web form - maybe I’d like to Look up a word, or do a web Search, or any of the other myriad options under the right-click menu - and if I could do it w/o the mouse, well, I think it’d be powerful!
I’ve got a KM macro to trigger a right click at the mouse’s current position - that was easy… but I’ve not been able to find any way to move the mouse cursor to where the keyboard cursor is. I hope I’m explaining this clearly. Like, until I really thought about it and typed it out, the fact that there generally are 2 different cursors (mouse & keyboard) didn’t really even occur to me.
The best idea I have would be to use a KM Click at Found Image, where the image would be the text cursor… but it’s not a very distinct image, and it’s half the time blinking on and off, and it’s also usually obscured by the text that it’s over, so I feel like that wouldn’t be overly successful.
Anyway, thanks for any ideas. I am a developer (though only a beginner developing for apple platforms), so perhaps there’s an API that Apple has that could expose this? If so, I could build a single-purpose app just for this one thing!
Thanks for reading.