Solved

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

Posted on 2008-10-28
5
523 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

777 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