 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Knowbodynow
Joined: 26 Jun 2007 Posts: 35
|
Posted: Mon Jul 16, 2007 1:38 am Post subject: Closing Just Windows Explorer Windows? |
|
|
Hello,
Is there any way to just close down open Explorer windows and leave other application windows still running?
Thanks,
CaH |
|
| Back to top |
|
 |
jballi
Joined: 01 Oct 2005 Posts: 349 Location: Texas, USA
|
Posted: Mon Jul 16, 2007 2:44 am Post subject: |
|
|
Here's how I do it...
| Code: | ;-- Put Windows Explorer classes (there are two) into a group.
; This only has to be performed once in the script.
GroupAdd WExplorerGroup,ahk_class CabinetWClass
GroupAdd WExplorerGroup,ahk_class ExploreWClass
;-- Then when you are ready, Winclose using the group as the WinTitle. Something like this...
WinClose ahk_group WExplorerGroup
return
|
I hope this helps... |
|
| Back to top |
|
 |
Knowbodynow
Joined: 26 Jun 2007 Posts: 35
|
Posted: Tue Jul 17, 2007 8:03 am Post subject: |
|
|
Thanks, that is very useful. It works exactly as I needed it to. By any chance to you know how I could tile just explorer windows. I think I can work out how to minimize everything but Explorer windows and then send this dllcall, e.g.
| Code: | | <#Space:: DllCall( "TileWindows", uInt,0, Int,0, Int,0, Int,0, Int,0 ) |
But I wondered if there is anyway to do it without minimizing the windows of other applications
Thanks again,
CaH |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5888
|
Posted: Tue Jul 17, 2007 12:41 pm Post subject: |
|
|
| Knowbodynow wrote: | | how I could tile just explorer windows. |
| Code: | #Space::
; Make a pipe delimited list of "Windows Explorer" Windows
WinGet, WE_List, List, ahk_class CabinetWClass
Loop %WE_List%
hWnds .= WE_List%A_Index% "|"
WinGet, WE_List, List, ahk_class ExploreWClass
Loop %WE_List%
hWnds .= WE_List%A_Index% "|"
; WinArrage() operates only on non-iconic windows
WinArrange( 1 , hWnds, 0, FULLSCREEN )
Return
#Include WinArrange.AHK ; http://www.autohotkey.com/forum/viewtopic.php?p=84807#84807 |
 |
|
| 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
|