Code: Select all
#IfWinActive ahk_class never_ever
~Up::ExitApp
#IfWinActive
Up::
ToolTip, %A_ThisHotkey%
Sleep, 2000
ToolTip
Return
Code: Select all
#IfWinActive ahk_class never_ever
~Up::ExitApp
#IfWinActive
Up::
ToolTip, %A_ThisHotkey%
Sleep, 2000
ToolTip
Return
Not really clear, or do you think it is?... its key name and the ordering of its modifier symbols ...
Hi, What do you need help with?Rohwedder wrote:Code: Select all
#IfWinActive ahk_class never_ever ~Up::ExitApp #IfWinActive Up:: ToolTip, %A_ThisHotkey% Sleep, 2000 ToolTip Return
Code: Select all
#if 0
^+i::
#if
+$^i::
MsgBox %A_ThisHotkey% ; ^+i
Code: Select all
^+i::
+$^i:: ; Error: Duplicate hotkey.
I wrote:How about: "If there are multiple variants of a hotkey, A_ThisHotkey returns the exact string which was used to create the first variant of the hotkey."
If more is needed: "Depending on how it was created, this is either the part of the label up to (but not including) the double-colon, or the value of the Hotkey command's first parameter."
Well, this might help. It could be added at least to the descriptions of ~ and also $ in the modifier listing."If there are multiple variants of a hotkey, A_ThisHotkey returns the exact string which was used to create the first variant of the hotkey."