Big_d_1989
01-18-2008, 08:45 AM
Hi there,
i was just wondering if there is a way of closing an IE tab without closing all of the tabs.
i was just wondering if there is a way of closing an IE tab without closing all of the tabs.
Closing Internet Explorer tabBig_d_1989 01-18-2008, 08:45 AM Hi there, i was just wondering if there is a way of closing an IE tab without closing all of the tabs. the master 01-18-2008, 08:47 AM Rightclick>Close;) Big_d_1989 01-18-2008, 09:31 AM I should of been more specific. I have a program which opens a number of IE tabs and i want to be able to close a certain number of them. The program is written in VB6. Sorry for not being specific enough first time the master 01-18-2008, 09:37 AM I suppose that depends how you are opening the tabs. Are you loading IE up as a seperate app or does IE load inside your app? One way you could try is using sendkeys to send ctrl+w. That will close just 1 tab but sendkeys isnt the best thing to use Big_d_1989 01-18-2008, 04:37 PM erm, my app sends a number of links to IE which open in seperate tabs. I want to be able to close them one by one, leaving just the original tab open the master 01-19-2008, 08:29 PM Cant you do it the same way you are sending the links? How are you sending the links anyway? Big_d_1989 01-20-2008, 01:08 PM There are differing numbers of links open. The sendkeys ctrl+w seems to be the best option. thanks xer0syk0 01-20-2008, 08:21 PM You might be able to make of use Spy++ and the following APIs: FindWindow, FindWindowEx, GetWindowLong. Just do a search for those terms with the conjunction of sendkeys. There's quite a # of topics out there. However, I'm having trouble looking for something that uses some of this code. |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum