I’m looking to check in the onInit macro if Numlock is not enabled, and if it is then enable it. I found the Numlock conditional but I’m not sure I understand the correct syntax.
ifNotNumLockOn tapKey NumLock
I’m looking to check in the onInit macro if Numlock is not enabled, and if it is then enable it. I found the Numlock conditional but I’m not sure I understand the correct syntax.
ifNotNumLockOn tapKey NumLock
Looks fine to me.
Not sure if num lock state is initialized by the time onInit is called though. You may need to throw in a few hundred ms delay.
I’m getting the following error with that syntax:
Error at $onInit 1/10/23: Unrecognized key abbreviation: NumLock
10 | ifNotNumLockOn tapKey NumLock
|
ifNotNumLockOn tapKey numLock
then. (Wrong case.)