IE7 Tabs

I am looking for a way using the SendMessage API or something along those lines to activate a different Tab from an external application, so I can detect if a URL is already open and restore that instance of IE and automatically switch to the proper tab.

Answer this question

IE7 Tabs

  • ttad

    I also want to know how to switch to the specified tab in IE7 without clicking action.

  • lib_team

    Hi Michael,

    There are not specific APIs for automating tabs in IE7. You can you accessibility APIs to activate different tabs. We are looking at this area for future development and it would help to understand exactly what you'd liek to see here.

    Thanks
    -Dave



  • R.Tutus

    COOL :) !

  • enric vives

    I have the exact same problem!

    I can get the last opened TAB, but that doesn't help me much:(

    I'll subscribe to this post to see if you get a solution.. I hope!



  • Mortsdeh

    IECUST...

    Would have to be C#.



  • Drakuz

    Clyde...

    Wow...your right. Looks like I'll finish it then. One click is the only way to go.



  • Ringo21

    I used the feature in favorites to add a tab group to my favorites, but I see no way to open a tab goup. That is, open all tabs in a group (that was saved in favoties) at once with one click of a menu item.

  • Mark A. Richman

    I would like to see a way to save a TAB GROUP and then go to Favorites->TAB GROUPS->my group and reopen all the tabs that I had saved in that group (I watch several codeplex projects of mine as well as several msdn forums, when my son reboots because his game crashes I have to manually open all those sites again:(



  • BrianFerguson

    Clyde,

    I thought that was a good idea...so I spent the day writing a band object that launched tab groups from favorites.

    Then I looked in IE 7 favorites...it already has this feature! lol.



  • tirengarfio

    Hi, the SPYXX utility (VS.net>Tools menu) lists the windows heiarchy under the top container (in IE7's case classname="IEFrame") under which are the windows with a classname of TabWindowClass, so to count the number of open tabs enum the windows under the top IEFrame window and count those with a classname of TabWindowClass.

    You should be able to use the same method to locate and activate a non-active tab, though I have not tried this method myself... maybe the SendMessage api (though there are no documented WM values for show tab) or maybe the ShowWindow api.

    Regards.



  • johnny_no1_boy

    How can you count the number of tabs open

  • RostaB

    What I would like to see is the ability to list all open tab URLS and page titles, and the ability to activate the different tabs. Even if it is not coded directly as an API just information on what is the best way to do this. Currently I am developing an add on application to a product my company sells that opens the users current instance of IE if they are on the correct page or launches a new one if they are not. Currently I list all windows in the thread of IEXPLORE and if the window does not contain the title I am looking for then I enumerate its children, if I find the match there I will open that instance of IE but I can not change the tab for the user they must click that themselves. When I am able to bring that active Explorer up but it causes problems within IE itselfs because it does not have that as being the active tab so you are unable to click on anything you see on the page. Any help on activating a different tab as a quick fix would be of great help.
  • FP.Three

    I want to activate the tab as well.

    I am printing document , it works fine with IE 6 but when it comes to IE 7 it prints all tabbed windows open in my current IE instance.

    What I want is , I want to print only currently active TAB.

    Please help me.


  • BillP Studios

    Hi CableHead,

    If you are looking for a job, I am afraid that I can't offer you one... hell I need one too.

    What I would like to proposition you with though is a combined effort to write a BHO for IE6 and IE7 in C++ or ATL. It would require a moderate skills level in either one of these languages and also some API and Callback usage.I already have an established customer base and a web site http://www.iecustomizer.com and could offer you a cut of the sales in return for your efforts. This may turn out to be a practicle use of your idle time.

    Initially please go to http://www.iecustomizer.com/ url=contact.asp and send us your contact details (email, Messenger ID, ICQ or Yahoo Messenger ID's) so that we can establish a dialog.

    Regards.



  • IE7 Tabs