Solved

I want to automate launching IE - with multiple tabs/windows

Posted on 2008-10-28
5
521 Views
Last Modified: 2013-12-08
Every time I restart, I have to re-launch about 15 web pages - it's annoying.  Firefox made it easy, but Firefox is fighting me tooth and nail (keeps loosing it's profile, and other issues).

So, to make IE more bareable to use, I'd like ONE shortcut to launch FOUR IE windows, each window having between 2 and 6 tabs.

For example:
Window 1
  Site 1
  Site 2

Window 2
  Site 3
  Site 4

Window 3
  Site 5
  Site 6
  Site 7

Window 4
  Site 8
  Site 9
  Site 10
  Site 11

I am not a programmer (though I manage a team of developers, so could get some code help if needed).
 
0
Comment
Question by:sunstoned
  • 3
  • 2
5 Comments
 
LVL 38

Accepted Solution

by:
Shift-3 earned 390 total points
ID: 22826328
Paste the script below into a text file with a .vbs extension.  Customize the values of the strSite variables with the desired URLs.  Running the script will launch them in four tabbed IE windows.


Const navOpenInBackgroundTab = &H1000&
 

strSite1 = "http://www.example.com"

strSite2 = "http://www.example.com"

strSite3 = "http://www.example.com"

strSite4 = "http://www.example.com"

strSite5 = "http://www.example.com"

strSite6 = "http://www.example.com"

strSite7 = "http://www.example.com"

strSite8 = "http://www.example.com"

strSite9 = "http://www.example.com"

strSite10 = "http://www.example.com"

strSite11 = "http://www.example.com"

strSite12 = "http://www.example.com"
 

Set objIE = WScript.CreateObject("InternetExplorer.Application")

objIE.Navigate2 strSite1

objIE.Navigate2 strSite2, navOpenInBackgroundTab

objIE.Visible = True
 

Set objIE = WScript.CreateObject("InternetExplorer.Application")

objIE.Navigate2 strSite3

objIE.Navigate2 strSite4, navOpenInBackgroundTab

objIE.Visible = True
 

Set objIE = WScript.CreateObject("InternetExplorer.Application")

objIE.Navigate2 strSite5

objIE.Navigate2 strSite6, navOpenInBackgroundTab

objIE.Navigate2 strSite7, navOpenInBackgroundTab

objIE.Visible = True
 

Set objIE = WScript.CreateObject("InternetExplorer.Application")

objIE.Navigate2 strSite8

objIE.Navigate2 strSite9, navOpenInBackgroundTab

objIE.Navigate2 strSite10, navOpenInBackgroundTab

objIE.Navigate2 strSite11, navOpenInBackgroundTab

objIE.Visible = True

Open in new window

0
 
LVL 3

Author Comment

by:sunstoned
ID: 22826543
Wow - awesome!  That (almost) works.

Now, how do I get it to launch IE - 32 bit, instead of 64 bit?  Most of the sites I use require flash, and thus I can't use 64 (unfortunately, as it seems quite a bit faster).

Thanks!
0
 
LVL 38

Expert Comment

by:Shift-3
ID: 22831541
I haven't been able to find much information on this topic, but one site (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1284920) recommends running the script using the 32-bit version of wscript.exe.  Try a command like this:

"%windir%\SysWOW64\wscript.exe" "c:\yourscript.vbs"

Open in new window

0
 
LVL 3

Author Comment

by:sunstoned
ID: 22831802
Shift-3:

You are awesome!  Thanks.

I created a .bat file with the command line you suggested.  I put a shortcut to the .bat file in my "startup" folder in Windows.  I configured the shortcut to "Run Minimized" to keep it out of view.

I modified the .vbs file a little, when I realized that the browser windows load in order, so the window/tabs  I want "on top" needs to be the LAST one in the list.

Now, every time I log in, The 12 sites I ALWAYS keep open (give it up to a 30" and two 19" screens and 8gb RAM) launch automatically.  The only way it could get better, is to automatically position and size the windows...  But perhaps that's just extravagent (not to mention tough in a multi-monitor environment I'm sure).

Full points to you, with my sincere thanks!
0
 
LVL 3

Author Closing Comment

by:sunstoned
ID: 31510923
Great!  Thanks again so much.  I do some graphics, and the interface design for our product.  If you need the favor returned, let me know!  ryan@designfacilitator.com.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now