 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
T-2 Guest
|
Posted: Mon Jun 16, 2008 6:35 pm Post subject: Close Multiple MSIE Windows |
|
|
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
|
Posted: Mon Jun 16, 2008 9:33 pm Post subject: |
|
|
| Code: |
F12::
SetTitleMatchMode, 2
Loop,
{
WinClose, - Internet Explorer
IfWinNotExist - Internet Explorer
break
}
return |
|
|
| Back to top |
|
 |
Sergio
Joined: 16 Mar 2008 Posts: 25 Location: Brooklyn
|
Posted: Mon Jun 16, 2008 9:55 pm Post subject: Windows or Tabs? |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|