Karl means create your own web page that uses 'frames' (only one frame
required), and set the page for the contents portion to be the page you want
to refresh frequently. In the header for your frame page, you will add the
META tag Karl mentioned, which when displayed in the browser will reload the
page at the interval selected. You would then, instead of loading the
remote site page in the browser, load instead your local HTML fame page
file, which once loaded in the browser would do the loading and refreshing
of the remote site automatically.
Throw this in notepad, save with a html extension, and then click. It will
load yahoo, and do the same every 10 seconds until the browser is closed.
The 'trick' of this is that by using a frame you are loading the yahoo site
inside your own page, and as such you can control aspects of its display.
If you want to reload every 30 seconds, change the 10 in the META tag to 30.
<html>
<head>
<title>New Page 1</title>
<meta http-equiv="Refresh" content="10;URL=http://www.yahoo.com/">
</head>
<frameset rows="*">
<frame name="main" src="http://www.yahoo.com/" scrolling="auto"
target="_self">
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html>
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
Please reply to the newsgroups so all can participate.
"Jason S" <js*****@iprimus.com.au> wrote in message
news:44**********@news.iprimus.com.au...
"Karl E. Peterson" <ka**@mvps.org> wrote in message
news:e6**********@nntp.aioe.org...
"Jason S" <js*****@iprimus.com.au> wrote in message
news:44**********@news.iprimus.com.au... Hi, is there any way of getting my VB (6.0) program to automatically
'Refresh' an IE window that might be active (window status not
applicable). It needs to be able to determine which active IE window to refresh, based
on its caption.
For example, there is a web site that I want to keep active where I
normally have to refresh it manually before it times out (every 15 min or so). I
might be doing something else at the time so I don't want to have to
refresh it manually every time (sometimes I even forget), but I want this web
page
to be remain active unless I manually close it.
Can this be done?
Please include code if possible or refer me to a site that may assist.
Easiest way is to create a frameset that includes the page you want to
update every X minutes, then include this tag in the header:
<meta http-equiv="Refresh" content="300">
Where "300" is the number of seconds before the page is automatically
refreshed. Far less overhead than trying to do it with a separate
process!
Thanks Karl, but I don't understand what you mean =( especially about the
frameset. Could you please be a little more specific? I am still learning.
Ta
Jason.