Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I could use some tips on capturing streaming text from ext app plz

Status
Not open for further replies.

Mechelsdic

Technical User
Feb 8, 2002
11
0
0
US
Using XP Pro, I would like to write an app that captures streaming text from another app that uses IE Rich Text Box windows into something I can save in a text or rtf file. I barely know where to start. hWnd, and what other methods will I need to use to achieve this? The window I need to capture posts text from other online users similar to a chat window so it is constantly being updated and a basic screenshot won't do. I need to be able to capture current text, plus lines of text as they are posted into the window and of course toggle the capture on and off. I can get the name of the RichTextBox using a viewer but have no idea what to do with it.

Any help on this would be great. :)

Mechelsdic

The more we know, the more we know there's more to know.
 
I think what you want to do is to redirect a pipe from the other application to one you create within your own application.

This is fairly straightforward if the pipe is stdout or stderr (as in command line apps for example). While I've never tried this in other cases I presume that, provided you have an interface to the pipe, you can redirect its output to the pipe you create.

Information on creating pipes for redirection can be found here :

An excellent example (albeit in VB) of capturing output from a shelled program can be found here :

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top