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 

Closing Just Windows Explorer Windows?

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



Joined: 26 Jun 2007
Posts: 35

PostPosted: Mon Jul 16, 2007 1:38 am    Post subject: Closing Just Windows Explorer Windows? Reply with quote

Hello,

Is there any way to just close down open Explorer windows and leave other application windows still running?

Thanks,

CaH
Back to top
View user's profile Send private message
jballi



Joined: 01 Oct 2005
Posts: 349
Location: Texas, USA

PostPosted: Mon Jul 16, 2007 2:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Knowbodynow



Joined: 26 Jun 2007
Posts: 35

PostPosted: Tue Jul 17, 2007 8:03 am    Post subject: Reply with quote

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
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5888

PostPosted: Tue Jul 17, 2007 12:41 pm    Post subject: Reply with quote

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


Smile
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