Is there an API or command line utility that returns the currently selected text from either active window or even globally, like the linux utility "xsel" ?
- I don't mind getting less than 100% success.
- i know that each window can have its own text selection, but it's negligible for now.
- For now the only solution/workaround i have is to sendkeys "ctrl+c" and read from clipboard, but that's bad solution for 2 obvious reasons.
- I know how to do it on MS-Word, but that's 1% of the cases.
thanks
edit
From this discussion i learn that there are too many technologies to select text. so i'll fall back to using clipboard. thanks anyway.
i'm leaving this question open for a while in case somebody have a miracle.