Results 1 to 8 of 8

Thread: Get browser tab captions & close tabs

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2009
    Posts
    5

    Get browser tab captions & close tabs

    NOTE: I have also posted this thread on XtremeVBtalk.com.

    I'm barely above an entry-level programmer, and have been trying to accomplish this task for a few days now. Perhaps some of you smarter folks can assist me.

    The program I am coding (in VB6) closes windows which have a caption that matches a keyword list. The program works as intended on all windows except browsers. When multiple tabs are opened, my code will close the entire browser rather than only the matching tab. I've tried some code that searches for any child windows, but apparently Firefox and Chrome don't utilize child windows in this aspect.

    Basically, I'd like to know how to extract the captions from open tabs (regardless of focus) and subsequently close tabs. Provided those two snippets, I can script the rest. However, I just can't seem to figure out how to accomplish this. The internet has been scoured and my hands are still empty. Any help?

    NOTE: If your reply includes a reference to a required class/module, please specify the name or provide a link. Thanks!
    Last edited by enoctis; Sep 18th, 2012 at 11:05 AM. Reason: Additional details

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width