Is there a way to parametrize macros?

I have this macro

set holdTimeout 500
ifHold tapKey LG-1
ifPrimary final tapKey 1

I would like to assign to all number keys, instead of creating 9 similar macros,would like to reuse the same but with different parameter for each key (eg 2 would press number 2 etc)

set holdTimeout 500
ifHold tapKey LG-$parameter
ifPrimary final tapKey $parameter

I didn’t find any documentation related to this, is possible to do it?

At the moment there is only the activateKeyPostponed command firmware/doc-dev/reference-manual.md at master · UltimateHackingKeyboard/firmware · GitHub

Otherwise, parametrising macros is planned, but we are not there yet.

1 Like