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
Solved

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

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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

809 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