• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 358
  • Last Modified:

Kixtart Script help needed.

Hi experts,

I need your help with writing a script (not necessary kixtart) which can achieve the followings:

- run in Windows 95 and Windows NT workstation.
- be able to detect if an IE broswer window is running, if not, start an IE broswer with address specified (not home address). One minute after the first broswer started, change the broswer window to broswer another web site or start another broswer windows and keep doing this every one minute (have to keep 1 to 2 windows opening all the time).

Please post your comments here or email me the scipt to myinbox1@hotmail.com

Please comments first.

  • 7
  • 6
1 Solution
Tim HolmanCommented:
start c:\program files\internet explorer\iexplore www.hotmail.com


hubenAuthor Commented:
tim: I need 1 to 2 explorer keep refreshing web pages every one minutes. I can certainly start a web page, but how can I
- close it and start a new IE page automatically

- refresh the current web page

English is not my first language, sorry if I did not make it clear.

Tim HolmanCommented:
Are these your web pages ?
If so, you could make the web pages refresh automatically, or kick off new browser sessions.
That's the only way I can think of.
Let me know if this is what you want and I'll post you the HTML code.
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

hubenAuthor Commented:
Please, I will give it a go.

Tim HolmanCommented:
Adding the following meta tag to the <head> will automatically load the URL after X seconds. This is commonly used to refresh a page at a regular interval.  

<meta http-equiv="refresh" content="X; url=URL">  

(from -http://www.abiglime.com/webmaster/reference/html/tags/meta.htm )

& use New Window PopUp from :

hubenAuthor Commented:
Thanks Tim

I tried, but found it did refresh the page to whatever I put behine "url=" web page, but it did not refresh after the time specified.

Maybe I did not make the qustion clear from the beginning: I like 1 to 2 internet explorer window open and keep refreshing the web page in a time manner. If possible, close one IE window and start another one will be better.

Please feel free to ask me what I mean if you can not understand.

Thanks, and more ideas?
hubenAuthor Commented:
I explain again: I put

meta http-equiv="refresh" content="10; url=www.yahoo.com"

and the page did change to www.yahoo.com after 10 seconds, but another 10 seconds later, nothing happened. I want the page keep updating every 10 seconds.

Is this possible?

Tim HolmanCommented:
..unless www.yahoo.com had a similar meta tag in their home page !
I thought you were doing this with pages of your own ???
The url entry should be pointing to itself, if that makes sense ?
Are you wanting to refresh the SAME web page, or open others that are not your own ?
You could get around this by framing www.yahoo.com, so that the meta tag in your web page still works, and refreshes the whole lot, regardless of whether or not they've a meta tag in them.
hubenAuthor Commented:
Thanks, Tim,

I don't quiet understand what you said about meta tage. Let me explain what I want to achieve again, and see if you have understood me correctly or not.

I would like to run a script or batch file which can do the followings:
- open a IE explorer window with address WWW.AAA.COM
- after some time (1 minute), change the explorer address to WWW.BBB.COM 
- If site WWW.AAA.COM has changed web content, refresh the content

Thanks for your help up to point.

Tim HolmanCommented:
Those two links I posted up show you how to start a new browser window and to refresh a web page.
If the web page contains another web page (ie framed) then that page will be updated too (I think !).
I'll look in my HTML book tonight for you.
Tim HolmanCommented:
<meta http-equiv="refresh" content="10; url=c:\tim\test.htm">  
<frameset rows="0,*">
<frame src="http://www.yahoo.com" marginheight=1>

This script will refresh www.yahoo.com every 10 seconds.
You could try the window popup link too - I'm not too hot on Java though.
hubenAuthor Commented:
Thank you very much, Tim, It worked great.
To script this in VBscript (with a 5 minute refresh):

next line to format EE
'Start of script
On Error Resume Next
Set IE = CreateObject("InternetExplorer.Application")
ie.navigate "About:Blank"
Do while ie.Busy
    ' wait for page to load
ie.document.writeLn "<HTML><META HTTP-EQUIV=""Refresh"" CONTENT=300>"
ie.document.writeLn "<HEAD><TITLE>My Window Title!</TITLE>"
ie.document.writeLn "<FRAMESET COLS=""100%"">"
ie.document.writeLn "<FRAME SRC=""http://www.yahoo.com"">"
ie.document.writeLn "</FRAMESET></HTML>"


'End of script

hubenAuthor Commented:
Thanks Mark for your comments, I will give VB script a try if Tim's html code has issues, at the moment, it works fine. Thanks again.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now