robotgo
robotgo copied to clipboard
Q: Is it possible to get the selected text?
Operating system and bit: MacOS Catalina 10.15.2
Description
Is it possible with robotgo to get the selected text in MacOS?
Ideally I want to be able to select a text somewhere on screen (browser, editor, maybe even terminal) and then press a special key combination to do something special with that text.
Performing an action on a specific key combination is no problem. But retrieving a selected text seems much harder then I expected. It is possible in Automator (example) but that is very slow. I prefer to use code ;-)