Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - How to script IE to open certain webpage prompted with user & pass

Reply
 
Old 3 Weeks Ago   #1 (permalink)
Rich


 
 

How to script IE to open certain webpage prompted with user & pass

Does anyone have a script that will open up a specific URL in IE7 or IE8?
Then this website prompts for a username and password, which I can store in
IE, but it still pops up with the box asking I confirm the stored info (if I
do it manually). I'd like the whole thing to be automated, so I can just run
this script, then the page opens in IE with the stored (either in IE or
somewhere else) credentials automatically input and accepted by IE, so
essentially it opens directly to the webpage without any user interaction.

My System SpecsSystem Spec
Old 2 Weeks Ago   #2 (permalink)
AvWG


 
 

Re: How to script IE to open certain webpage prompted with user & pass

Hi Rich

Following script I use to open some predefined URLs (stored in the array
aLinks) :

Set oIE = CreateObject("InternetExplorer.Application") ', "oIE_")
oIE.Visible = True
oIE.FullScreen = False

'open a new window
oIE.Navigate2 aLinks(0)
Do While oIE.Busy
WScript.Sleep 50
Loop

'open url In new tab
Logon() ' My own logon subroutine

WScript.Sleep 2000
For J=1 To 9
oIE.Navigate2 aLinks(J), navOpenInBackgroundTab 'navOpenInNewTab '
Do While oIE.Busy
WScript.Sleep 50
Loop
WScript.Sleep 3000
Next

WshShell.SendKeys "^{TAB}" 'go to the 2nd tab
WScript.Sleep 100
on error goto 0

Is this useful for you?

André


"Rich" <richjone@newsgroup> schreef in bericht
news:0A1D6061-4F6F-4D91-BC8E-CD920C3D7187@newsgroup
Quote:

> Does anyone have a script that will open up a specific URL in IE7 or IE8?
> Then this website prompts for a username and password, which I can store
> in
> IE, but it still pops up with the box asking I confirm the stored info (if
> I
> do it manually). I'd like the whole thing to be automated, so I can just
> run
> this script, then the page opens in IE with the stored (either in IE or
> somewhere else) credentials automatically input and accepted by IE, so
> essentially it opens directly to the webpage without any user interaction.

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Execute a powershell script from a webpage PowerShell
Running A Script Whenever A User Tries To Open A Folder On TheNetwork VB Script
Pass parameters to XBAP from webpage .NET General
Pop-up to enter variables to pass to script PowerShell
User is not prompted for Name & PW & can't connect to share. Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46