cajhin / capsicain

Powerful low-level keyboard remapping tool for Windows
349 stars 18 forks source link

parse error for moddedkey(NP+ #18

Closed bitoj closed 3 years ago

bitoj commented 3 years ago

While recreating some previous AHK key combinations, I stumbled upon a parse error when I tried to use function moddedkey to define a combination with NP+ as in the following fragment.

[config_1]
option configname demo moddedkey NP+
rewire numlock mod13 numlock
combo - [& .... .... ..&.] > moddedkey(NP- + &.&.)
combo = [& .... .... ..&.] > moddedkey(NP+ + &.&.) # PARSE ERROR

The results in error

Cannot parse combo rule: combo = [& .... .... ..&.] > moddedkey(NP+ + &.&.)

So far this does not seem to be preventing me from reaching my goal, for the following use of function sequence seems to be a workaround.

combo = [& .... .... ..&.] > sequence(&LCTRL_&LALT_&NP+_^NP+_^LALT_^LCTRL)

FYI: the combination Ctrl+NumLock is received when I press the Pause key in the top right corner of my keyboard without modifiers.

cajhin commented 3 years ago

same; this is very likely a very silly bug. Will be fixed soon.

cajhin commented 3 years ago

fixed with v83 beta

bitoj commented 3 years ago

confirmed