| View previous topic :: View next topic |
| Author |
Message |
savage
Joined: 02 Jul 2004 Posts: 207
|
Posted: Tue Mar 03, 2009 10:27 pm Post subject: distinguishing between dynamic hotkeys |
|
|
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 |
|
 |
savage
Joined: 02 Jul 2004 Posts: 207
|
Posted: Tue Mar 03, 2009 10:34 pm Post subject: |
|
|
Nevermind, figured it out myself. It's the A_ThisHotkey variable, for the record. _________________ <enormous animated gif> |
|
| Back to top |
|
 |
Guesty! Guest
|
Posted: Tue Mar 03, 2009 10:35 pm Post subject: |
|
|
| 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 |
|
 |
|