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 

How to use ahk_class

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



Joined: 20 Jul 2004
Posts: 21
Location: South Africa

PostPosted: Fri Jul 30, 2004 6:55 pm    Post subject: How to use ahk_class Reply with quote

I would like to create a new folder when pressing win n (#n). I'd like this function only to be available when using Windows Explorer. I've tried doing it with the script below, but it is still not restricted to Windows Explorer environment. Any idea what could be wrong.

Thanks in advance.

#n:: IfWinActive, ahk_class ExploreWClass
{
Send, !fwf
Return
}
Send, #n
Return
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Fri Jul 30, 2004 7:03 pm    Post subject: Reply with quote

If a hotkey label is to have more than one line, you can't put the first line to the right of the double colons. Move it down one line instead:
#n::
IfWinActive, ahk_class ExploreWClass
{
...
Back to top
View user's profile Send private message Send e-mail
wolive



Joined: 20 Jul 2004
Posts: 21
Location: South Africa

PostPosted: Fri Jul 30, 2004 7:13 pm    Post subject: Reply with quote

Thanks for the swift answer Chris. It's much appreciated. I must confess, I'm hooked on AHK. It's the best thing since sliced bread. Very Happy
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