Discussion Locked

scripting 101

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I know very little about scripting and I have been asked to write one that will open multiple programs simultaneously. The purpose of this is to create a torture test for new computers. One of these programs will be IE 5.5 and needs to access 5 different sites continuously in a loop. It also needs to open Netscape Navigator and do the same thing. I want to have multiple browsers open doing this. Help!

3 replies

by ntoz

Hey here is a start, no bells or gagets, just something I threw together for you to get started. You can also have it launch multiple instances of IE and if you can get the object model for Netscape, the same. Here is a basic start though, you will need to have the latest version of WSH 2.0 loaded. You can download it from MS if you dont have it... Let me know if you need a little more help, but this should get you going. It currently starts a single instance of IE and switches between two sites, but if you follow the script, you should be able to modify it and add more to it.

Pete

'///////////////////////////////////////////////////
'$Workfile iestress.vbs
'Copywrite 2000 RKS Technologies, NTOZ written for jkeller@som.llu.edu
'//////////////////////////////////////////////////

'Sets scripting to require assignment of variables

Option Explicit

'Declare Variables

DIM IEo, X

Set IEo = CreateObject("Internetexplorer.application")

IEo.gohome

IEo.visible = true

Do Until x = 5

iEo.navigate "http://www.msn.com"

slp

Ieo.navigate "https://www.techrepublic.com"

x = x + 1

slp

loop
'Kills object instance

IEo.quit

Sub slp

wscript.sleep (4000)

End Sub

This discussion is closed to new replies.