[a138] Invalid hotkey declarations permitted Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
User avatar
lvalkov
Posts: 58
Joined: 08 Mar 2019, 16:39

[a138] Invalid hotkey declarations permitted

11 Jul 2021, 06:55

[Moderator's note: Topic moved from Bug Reports.]

Seemingly invalid modifier combinations are accepted as valid hotkeys without raising any loading or runtime errors.

Code: Select all

#Requires AutoHotkey v2.0-a138-7538f26f
#Warn All

Hotkey('<#<#<#<#<^<!<+>#>#>#>#>^>!>+', (ThisHotkey) => '')

<#<#<#<#<^<!<+>#>#>#>#>^>!>+ Up::
{

}

Code: Select all

Type	Off?	Level	Running	Name
-------------------------------------------------------------------
k-hook				<#<#<#<#<^<!<+>#>#>#>#>^>!>+ Up
k-hook				<#<#<#<#<^<!<+>#>#>#>#>^>!>+
lexikos
Posts: 9690
Joined: 30 Sep 2013, 04:07
Contact:

Re: [a138] Invalid hotkey declarations permitted  Topic is solved

16 Jul 2021, 20:16

There aren't any invalid modifier combinations in your post. There is one invalid modifier, >, which has no effect.

Otherwise, this is a valid hotkey which can be triggered by pressing LWin, LCtrl, LAlt, LShift, RWin, RCtrl, RAlt and Plus.

(The + at the end is not a modifier, because it is not followed by a key name or character. Therefore the > preceding it does not apply to anything.)

I'm pretty sure this applies to all versions of AutoHotkey, ever.

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: emp00, songdg and 79 guests