Solved

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

Posted on 2008-10-28
5
528 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

729 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