AutoHotkey Community

It is currently May 27th, 2012, 6:48 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: September 2nd, 2011, 6:46 pm 
Offline

Joined: April 9th, 2009, 4:11 pm
Posts: 22
Location: Houston, Tx
Before installing and activating the Windows Explorer add-in called QTTabBar, I could close the standard Explorer window with a simple keyboard shortcut via AHK script.

Now with QTTabBar activated (meaning, toolbars enabled) in the Explorer window, Explorer does not respond to the keyboard shortcut.

Code:
; Use Accent/Tilde Key to Close various apps
SetTitleMatchMode, 2 ;allow partial match
#IfWinActive ahk_class ExploreWClass
`:: WinClose
#IfWinActive ahk_class CabinetWClass
`:: WinClose


I was hoping that Window Spy would show that the Class or some other descriptor would've changed with QT enabled; however, there is no difference.

Thoughts?

weg


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 2nd, 2011, 11:21 pm 
Offline

Joined: July 31st, 2008, 10:27 pm
Posts: 336
I' guessing, but I think that you want to do this:

Code:
; Use Accent/Tilde Key to Close various apps
SetTitleMatchMode, 2 ;allow partial match
#IfWinActive ahk_class ExploreWClass
`:: WinClose,  ahk_class ExploreWClass
#IfWinActive ahk_class CabinetWClass
`:: WinClose,  ahk_class ExploreWClass


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2011, 1:05 pm 
Offline

Joined: April 9th, 2009, 4:11 pm
Posts: 22
Location: Houston, Tx
Thanks for the suggestion; however, no solution.

Why the need for a direct restatement of the Active class in the WinClose lines when it seems that
it should know what it is closing from the #IfWinActive line?
(btw, I'm not anywhere close to being an expert with AHK; very much a neophyte)
I've never needed that in any other scripts previously for them to activate properly.
Also, why > `:: WinClose, ahk_class ExploreWClass < in the WinClose line of the second set (#IfWinActive ahk_class CabinetWClass)?
Shouldn't it be a ahk_class ExploreWClass to match the WinActive it's associated with?

The Explorer window still does not respond with the QTTabbar activated.
I have to manually close the window after deactivating the toolbars and then call up another instance of Explorer,
then the script with function as I had it written originally.

Thoughts?

weg


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, sjc1000 and 63 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group