How do you tell AutoIt to choose a specific browser tab if multiple IE tabs are already open?

I need to find the command to tell AutoIT to choose a specific browser tab.

For example.  If I have a browser open with Google in the First tab, MSN in the second tab and YouTube in the third tab.  I want to autoit to choose YouTube tab and then perform actions  in that specific tab.  What command do you use in AutoIt.  Any help is greatly appreciated.
kwh3856Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Dan CraciunConnect With a Mentor IT ConsultantCommented:
Maybe something like this:
AutoItSetOption("WinTitleMatchMode", 2)

$searchString = "YouTube"

WinActivate("Chrome")
For $i = 0 To 100
    Send("^" & $i)
    Sleep(250)
    If Not(StringInStr(WinGetTitle("[ACTIVE]"), $searchString) = 0) Then
        \\your code here
        ExitLoop
    EndIf
Next

Open in new window


HTH,
Dan
0
 
kwh3856Author Commented:
That Rocks!!!!!

I did not even know you could do Ctrl-1, Ctrl-2 etc... to move through the tabs.

Thanks!!!!!!
0
 
kwh3856Author Commented:
AWESOME!!!!!!!
0
 
Dan CraciunIT ConsultantCommented:
Glad I could help :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.