Hi,
This question can be easily understood by PGP/GnuPG users.
My VB application starts in the system tray. I want that as the user selects an option to encrypt or decrypt text, the text in any window opened on the desktop (e.g., Notepad) should automatically get selected and transferred to my program.

I thing some API function like "GetWindowText" is there for doing this.

Any Idea?

.............
Rohit.