Solved

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

Posted on 2014-01-25
4
5,634 Views
Last Modified: 2014-01-25
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.
0
Comment
Question by:kwh3856
  • 2
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
Comment Utility
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
 

Author Comment

by:kwh3856
Comment Utility
That Rocks!!!!!

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

Thanks!!!!!!
0
 

Author Closing Comment

by:kwh3856
Comment Utility
AWESOME!!!!!!!
0
 
LVL 34

Expert Comment

by:Dan Craciun
Comment Utility
Glad I could help :)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

771 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now