Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
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
Medium Priority
?
6,870 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
[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
  • 2
  • 2
4 Comments
 
LVL 35

Accepted Solution

by:
Dan Craciun earned 2000 total points
ID: 39809101
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
ID: 39809102
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
ID: 39809103
AWESOME!!!!!!!
0
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39809107
Glad I could help :)
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
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.

671 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