Patrick,

> I use PGP 6.0.2 to sign all my messages to newsgroups. It has a
> setting that
> allows it to cut the text from a message window, sign it and then paste it
> back. How does it do this I wonder (referring not to a plug-in to my
> newsreader, but the separate PGPtray program)

Don't know how PGP does it but here is how I would do it:

If the window is an editbox (single or multi-lined), just read the text
using the GetWindowText API function.  GetWindowText will read the text
associated with most windows.  Not all windows keep their text this way, but
this method is good enough for the standard windows classes.  Use the
GetWindowTextLenth function to determine how much text there is to get.

-----------------------------------------------------
Dennis Chuah, BE (Hons) [mailto:[EMAIL PROTECTED]]
Manager, Product Development
Contec Data Systems Ltd. [http://www.contecds.com]
tel: +64-3-3580060 ext-775 fax: +64-3-3588045



---------------------------------------------------------------------------
  New Zealand Delphi Users group - Offtopic List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to