PDA

View Full Version : Not sure what type of java this is


Ikoh
07-25-03, 03:43 PM
Greetings,

I found this script that opens up a IE window and brings you to the site that is in the script. you can set this to refresh every 10 seconds or 10 hours... good for watching auctions etc. I am looking for a way to close the window after it opens for X amout of time. Here is what I have so far.



WshShell = WScript.CreateObject("WScript.Shell");

while (WshShell.Popup("Auto Refresh Ebay every 1 min?",10,"1.1.0",1) < 2) {
WshShell.Run("http://www.ebay.com");
WScript.Sleep(1000 * 1 * 60);
}

Also does anyone know a good web site to look for examples for this type of thing?

Thank you for your time.

Sincerely,

Mark Laudenbach

nytemare
08-19-03, 01:37 PM
looks like VBScript to me.

greeny
08-19-03, 07:26 PM
That's Windows Scripting Host (WSH) demonstrated in JavaScript. You can find more information on it at:

http://www.devguru.com/
http://msdn.microsoft.com/scripting/