In C#, how can I grab the selected text from any software? [closed]?

One way is Accessibility API, which will only work for applications that support screen readers. In C# you can use Managed Winapi for this, start at the SystemAccessibleObject class... I think Babylon uses OCR on the displayed image, which works well as long as you use a standard font at standard sizes.

Okay, thanks. So I should use SystemAccessibleObject. FromPoint and the cursor position, and then use the Value property?

– user145586 Jul 31 '09 at 18:57 I tried this: System.Threading.Thread. Sleep(1000); MessageBox. Show(ManagedWinapi.Accessibility.

SystemAccessibleObject.MouseCursor. V? Alue); but it's not working – user145586 Jul 31 '09 at 19:01 Yes, start with SystemAccessibleObject.

FromPoint, but you will have to check its Type and maybe move up to its parent a few times until you get the value you really want... – mihi Aug 1 '09 at 11:57.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions