| View previous topic :: View next topic |
| Author |
Message |
wolive
Joined: 20 Jul 2004 Posts: 21 Location: South Africa
|
Posted: Fri Jul 30, 2004 6:55 pm Post subject: How to use ahk_class |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10465
|
Posted: Fri Jul 30, 2004 7:03 pm Post subject: |
|
|
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 |
|
 |
wolive
Joined: 20 Jul 2004 Posts: 21 Location: South Africa
|
Posted: Fri Jul 30, 2004 7:13 pm Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
|