AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Close Multiple MSIE Windows

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
T-2
Guest





PostPosted: Mon Jun 16, 2008 6:35 pm    Post subject: Close Multiple MSIE Windows Reply with quote

I use MicroSoft Internet Explorer to browse the Internet. Many a times I have quite a few MSIE Windows open at the same time and it gets quite tedious to close all of them individually. I would like to know whether a Hotkey (for example, say the F12 key) can be coded so that by pressing one key (F12 in this case); all open MSIE Windows would close at one go.

Would welcome a code for the same…
Back to top
Krogdor



Joined: 18 Apr 2008
Posts: 1019
Location: The Interwebs

PostPosted: Mon Jun 16, 2008 9:33 pm    Post subject: Reply with quote

Code:

F12::
SetTitleMatchMode, 2
Loop,
{
WinClose, - Internet Explorer
IfWinNotExist - Internet Explorer
break
}
return
Back to top
View user's profile Send private message AIM Address
Sergio



Joined: 16 Mar 2008
Posts: 25
Location: Brooklyn

PostPosted: Mon Jun 16, 2008 9:55 pm    Post subject: Windows or Tabs? Reply with quote

Do you have many MSIE windows, or many MSIE Tabs that are open? If they are tabs, then this system will work very nicely for you. First it will ask you how many you want to close and then it will run a loop that will close as many tabs as you've specified.

Code:
^F12::
InputBox, UserInput ,Enter,How many Tabs do you want to close?,, 200,150, 200 ,150
varCloseTabs:=UserInput

Loop %varCloseTabs%
{
Send, {CTRLDOWN}F4{CTRLUP}
Sleep, 10
}
return

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group