ThisHotKey not implemented

Issue #6 closed
Winter Laite created an issue

From ThisHotKey docs page, modified slightly:

#n::MsgBox(ThisHotkey)  ; Reports #n

Works in 2.0-beta.6 and 2.0-beta.7, fails in Keysharp. No errors in keyview or upon running, but no MsgBox displays.

Docs state that “When a hotkey is triggered, the name of the hotkey is passed as its first parameter named ThisHotkey (which excludes the trailing colons).“ It appears that ThisHotkey (as opposed to A_ThisHotKey) is not implemented.

Workaround:

#n::MsgBox(A_ThisHotkey)  ; Reports #n

Comments (4)

  1. Matt Feemster repo owner

    Cannot reproduce.

    #n::MsgBox(ThisHotkey)
    

    Shows “#n” just fine for me.

    Standby for a commit, I may have inadvertently fixed it.

  2. Winter Laite reporter

    Not sure how to mark an issue as closed, but my ThisHotKey issue was probably a non-issue.

  3. Log in to comment