Hotkey, Enter not working

Get help with using AutoHotkey and its commands and hotkeys
julesverne
Posts: 13
Joined: 18 Apr 2017, 14:39
GitHub: JulesverneOnGitHub

Hotkey, Enter not working

08 Jun 2019, 00:58

Hi all,
Having no luck getting Enter to be a Hotkey. Any help would be appreciated. Thanks!

I've changed the example below from the docs here: https://www.autohotkey.com/docs/commands/Hotkey.htm

Code: Select all

; original doc example
Hotkey, ^!z, MyLabel
return

MyLabel:
MsgBox You pressed %A_ThisHotkey%.
return

Code: Select all

; changed doc example using Enter as hotkey does nothing
Hotkey, Enter, MyLabel
return

MyLabel:
MsgBox You pressed %A_ThisHotkey%.
return

Code: Select all

;  changed doc example using {Enter} as hotkey gets runtime error.
Hotkey, {Enter}, MyLabel
return

MyLabel:
MsgBox You pressed %A_ThisHotkey%.
return
Rohwedder
Posts: 2309
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Hotkey, Enter not working

08 Jun 2019, 01:47

Hallo,
here (Win7 Ahk1.1.30.03)
Hotkey, Enter, MyLabel works

Return to “Ask For Help”

Who is online

Users browsing this forum: A_Perry_1984, Bing [Bot], labrint, maxkill, relativity, Rohwedder and 211 guests