In C# with VS 2012 is it possible to “read” what a user highlights in another program?
For instance if a user is running Firefox, and uses the mouse to select (or highlight) a piece of text, can a program built with C# be “aware” of this selected text?
I have searched around, but I have come up empty.
I think the easiest way to do this is copying the text to the clipboard. For example, call CTRL+C programmatically. It will work for almost every program. If you need a certain program, you can do it using the UI Automation.