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 

distinguishing between dynamic hotkeys

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



Joined: 02 Jul 2004
Posts: 207

PostPosted: Tue Mar 03, 2009 10:27 pm    Post subject: distinguishing between dynamic hotkeys Reply with quote

If I have the following, is there anyway to tell from within MyLabel which hotkey was used to trigger it? Assume that there could be any number of such hotkeys.

Code:

Hotkey, ^+f, MyLabel
Hotkey, #^d, MyLabel

MyLabel::
return

_________________
<enormous animated gif>
Back to top
View user's profile Send private message AIM Address
savage



Joined: 02 Jul 2004
Posts: 207

PostPosted: Tue Mar 03, 2009 10:34 pm    Post subject: Reply with quote

Nevermind, figured it out myself. It's the A_ThisHotkey variable, for the record.
_________________
<enormous animated gif>
Back to top
View user's profile Send private message AIM Address
Guesty!
Guest





PostPosted: Tue Mar 03, 2009 10:35 pm    Post subject: Reply with quote

You could probably just make it MyLabel and MyLabel2 and so on, and just duplicate the function, changing what you need. That's just the unwieldy way though.
Back to top
Display posts from previous:   
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