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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading HTML

Status
Not open for further replies.

NiceButDim

Programmer
Feb 12, 2002
154
GB
Hi,
I want to do the following; periodically check the contents of an IE window (that refreshes every 10 minutes or so) and if the contents are different from the previous check then warn the user. I can use FindWindow to get a handle for the IE window, but can I read the HTML that its displaying?
I would be very grateful for any help on how to do this, if its actually possible.

Thanks

john.
 
Personally, I would use something like 'wget' or 'curl' to download the actual HTML file every 10 minutes, then do a compare between the current and previous files.

If you just read "the window", then you have to contend with scrolling, resizing windows, changing text size - all of which don't depend on the actual HTML data.

In fact, if the web server you're listening to honors the Date properly, then you can just do
[tt]curl --head www.google.com[/tt]
and look at the "Date:" field to determine whether the content has changed or not.

--
 
Also, to get the HTML from IE, just click View->Source.
 
Thanks for the reply.
I know about the view->Source in IE, but I need a background task that programatically checks the window's contents. Plus the html is framed, so View->Source by itself doesn't get what I'm after.
Thanks all the same.

john.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top