jd

jd

  • NA
  • 3
  • 0

Capture selected text from active window

Oct 8 2009 11:09 AM
Hi all,

Need on your help on this.

I need to capture the selected text from the current window (be it a browser or any other application), and print it in my c# console application (for now - to keep is simple).

I got some help from the following thread:
http://www.c-sharpcorner.com/Forums/ShowMessages.aspx?ThreadID=46461

But, it gives me an ArgumentOutOfRange exception in the last line (substring operation)

Other ideas / approaches for implementing this are also welcome.

Thanks in advance,

Jd



Answers (2)