check caps lock or num lock on

I there a way to check the caps or num status in a condition (in a defined keyboard)?

Use javascript or apple script for the check, which script can then change a variable which you can use a condition.

6.308 alpha adds a new variable "currently_active_modifier_keys" that can contain capslock and numlock:

You can use it in if conditions

Great, it works just fine!
thank you so much Andreas :grin:

I am trying to apply the numlock check, but it does not seem to work consistenly.

I’m trying to use the numeric pad of a keryboard in 2 differents modeS:
if capslock on theN write the number using insert text, to make it work as a numpad
if caps on off the launch a named trigger (windows position management)

but when capslock is on, it seems that the if on currently active modifier contains num umlock returns alternatively true and then false and the true again and so on…