Well, I think this explains it pretty well:
"I'm making a program that's supposed to translate easy phrases (actually, I use a service for this) when they're marked in a web browser, and a certain key sequence is pressed. The problem is that I can't use UI automations (ways of retrieiving the selected text by standard) with internet explorer, so therefore I somehow need to get the selected text in the currently selected (AKA, highlighted/in-focus-ed) window. How can I do this? Is it even possible?"