Link to home
Start Free TrialLog in
Avatar of rhea_walters
rhea_walters

asked on

Automatic toggle between internet session windows.

The original situation/question/solution is so close to what I need, but I seem to be missing something.
Original: I have an XP pro machine at work that I am using as a kind of admin/monitoring station for ... ~
I need to toggle through 3 internet sessions from a hosted application. (internet sessions slideshow)

I tried the suggested script, but I get a script error. The internet windows display different content, but the window titles are all the same (https://secure.contactondemand.com/CCA/SCOD/Dashboard/workgroupCurrDayBillboard.jsp). Any help would be GREATLY appreciated.
ASKER CERTIFIED SOLUTION
Avatar of Jared Luker
Jared Luker
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rhea_walters
rhea_walters

ASKER

Getting closer, but this is a company computer so I am limitted to the use of internet explorer. Additionally, these windows will not open as TABS (I've tried).
I liked your suggestion and used it to search for the same feature for IE, but the only one I found required another download to download, etc, etc...  This is a company computer and I will take some liberties, but I don't want to get bogged down in excessive downloads. I eventually have to repeat this process on at least 4 other computers,
After a lot of hunting, copy/pasting, and trial and error, I came up with a working solution. I minimized everything except the windows I want to scroll, then kick off the script.

   Option Explicit
   dim objShell
   Set objShell = CreateObject("WScript.Shell")
   Do While (err.number = 0)
      objShell.SendKeys "%"+"{TAB}"+"{TAB}"
      if (err.number <> 0)  then exit do
      Wscript.Sleep 5000
   Loop
   quit

The one problem I still have is how to get out of the loop. I either have to stop the task using task mgr, or get to the cmd window and clt-C. I'm still toying with using task scheduler to start and stop the process so it can be completely hands-off.
The solution was probably sound, but didn't fit my situation. I do appreciate your taking the time to respond.