Hi Everybody,

Using D7, TWebBrowser, as the program runs, I can hit the key chord Ctrl-A,
Ctrl-A to select and then copy the text and other stuff displayed inside a
TWebBrowser.  Then I select the target and hit a Ctrl-V to paste it into a
TMemo or a TRichEdit.  

But I want the PROGRAM to do that!  How can I get my running TWebBrowser
based program to copy the displayed text as though I had done Ctrl-A,
Ctrl-C, then select and Ctrl-V?

I tried the obvious approach of reading the TWebBrowser docs, the Indy docs,
and so on.  When the extension of the URL is a text-type file (htm, html,
txt, rtf, ...) the following works:

        reText.Text := HTTP.Get(URLpart);

But when the extension is non-text (pdf, none, ...) the program goes into a
never ending loop looking for text among the binary ruins.  So I need a way
to do the [ Select-All | Copy | <select target> | Paste ] sequence
programmatically when the extension is non textual.  The last part, I can
do.  It's the first part that I haven't figured out:

Does anyone have a suggestion on how to [ Select-All | Copy ] in a
TWebBrowser, or TIdHTTP or some such component?  D7, Vista & XP targets.  
 
Sincerely,
Rich Cooper
EnglishLogicKernel.com
Rich AT EnglishLogicKernel DOT com

_______________________________________________
Delphi mailing list
Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to