Programmatically Toggle the Caps Lock Key

In fact, I can also press any key in-between two clicks on the Run/Try Button to make it work. So what I called caveat isn't actually much of a caveat :slight_smile:

It seems the API just needs any key event to update the state internally, so that it can report back the correct state when the macro is run.

Edit:

For testing, here is your version with the ASOC script, plus the setter JXA action (using the return value from the ASOC script):

Caps Lock Detection + Change [test].kmmacros (3.3 KB)

1 Like