the highlighted/selected text on any windows applications (like word, excel, sharepoint portal, web browser, etc.,).
How to do this with C#?
I will really appreciate if someone comes up with a small sample instead of suggesting the links.
Thanks in Advance !
What you propose, in theory, is not allowed by the security architecture between processes of the OS. There would be the possibility of doing so, if the target application is executed from your application, I suppose 🤔... In any case, it would require different solutions for each application invoked (using specific API for communication with each application) ... In addition, the clipboard is a perfect instrument for the exchange of text and images between applications, respecting privacy and security in the access to information between processes.
This may be possible using global mouse key hooks and listenning to mouse down and mouse up. During mouse up event you could get the text in clipboard as sugested by @goosegle
Обсуждают сегодня