xsel for windows equivalent API or command line? <p>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" ?</p> <ul> <li>I don't mind getting less than 100% success.</li> <li>i know that each window can have its own text selection, but it's negligible for now.</li> <li>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. </li> <li>I know how to do it on MS-Word, but that's 1% of the cases.</li> </ul> <p>thanks</p> <p><strong>edit</strong></p> <p>From <a href="http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Controls/Q_21607824.html" rel="nofollow">this discussion</a> i learn that there are too many technologies to select text. so i'll fall back to using clipboard. thanks anyway. </p> <p>i'm leaving this question open for a while in case somebody have a miracle.</p>