Photo Gallery
Member List
Search
Calendars
FAQ
Ticket List
Log Out
Forums
Register
Login
My Profile
Inbox
Address Book
My Subscription
My Forums
navigate multiple ie pages...
Logged in as: Guest
arrSession:exec spGetSession 2,2,64208
Active Users: There are
0
members and
0
guests.
Users viewing this topic: none
Printable Version
All Forums
>>
[Scripting]
>>
WSH & Client Side VBScript
>> navigate multiple ie pages...
Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page:
[1]
Login
Message
<< Older Topic
Newer Topic >>
navigate multiple ie pages... -
9/11/2008 4:57:20 AM
xjghost
Posts: 5
Score: 0
Joined: 9/11/2008
Status:
offline
I have a script that I use to loginto a web site. I ahve bene trying to get it to navigate to specific links that I put in either the script or a batch file. First I tried this.
Set IE = CreateObject("InternetExplorer.Application")
With IE
.navigate "
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"
.navigate "
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"
.navigate "
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"
.navigate "
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"
.navigate "
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"
.visible=1
End With
'wait a while until IE as finished to load
Do while IE.busy
loop
Set IE = Nothing
WScript.Quit(0)
It goes to the last link. What should i be using to get it to open each page seperately? Any help would be appreciateed.
Post #: 1
RE: navigate multiple ie pages... -
9/11/2008 9:29:52 PM
ninjamaster
Posts: 107
Score: 0
Joined: 1/23/2007
Status:
offline
Found a yucky way of doing this
By creating a seperate call for IE you can open each URL using a seperate IE process...
Set IE = CreateObject("InternetExplorer.Application") Set IE2 = CreateObject("InternetExplorer.Application") With IE .Navigate2 "[link=http://www.visualbasicscript.com]http://www.visualbasicscript.com[/link]" .visible=1 End With 'wait a while until IE as finished to load Do While IE.busy Loop With IE2 .Navigate "[link=http://www.google.co.uk]http://www.google.co.uk[/link]" .visible=1 End With 'wait a while until IE as finished to load Do while IE2.busy Loop WScript.Quit(0)
NOTE : - You'll need to take the [LINK] parts out of .Navigate :)
Loading the URL's into an array and looping round might work?
< Message edited by
ninjamaster
--
9/11/2008 9:32:13 PM
>
(in reply to
xjghost
)
Post #: 2
RE: navigate multiple ie pages... -
9/12/2008 12:22:34 AM
dm_4ever
Posts: 2669
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status:
offline
Create a function to do it for you and help avoid repetitive code.
_____________________________
dm_4ever
My philosophy:
K.I.S.S - Keep It Simple Stupid
Read Me:
http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff:
http://www.visualbasicscript.com/m_47117/tm.htm
(in reply to
ninjamaster
)
Post #: 3
If you found our site useful please link to us
<a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>
.
All Forums
>>
[Scripting]
>>
WSH & Client Side VBScript
>> navigate multiple ie pages...
Page:
[1]
Jump to:
Select a Forum
All Forums
----------------------
[Welcome]
- - Forum Rules
- - Test Posting Messages
- - New Member Area/Introduction
[Scripting]
- - WSH & Client Side VBScript
- - WSH & Client Side VBScript Tutorial
- - Post a VBScript
- - Windows PowerShell
- - ASP
- - ASP.NET
- - Windows Script Components
[General Forum]
- - Other Programming/Scripting Languages
- - Suggestions & Feedback
- - Off-Topic Lounge
New Messages
No New Messages
Hot Topic w/ New Messages
Hot Topic w/o New Messages
Locked w/ New Messages
Locked w/o New Messages
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
Forum Software ©
ASPPlayground.NET
Advanced Edition
2.5.5 ANSI