Generate a hardware interrupt that enables CapsLock

I want to send a hardware event to the machine so that my lock lock key is turned on. When I send a permission interrupt, the Caps-lock key lights up, and when I send a permission interrupt, the Caps-lock key lights up.

I use Qt, Mac, C ++, Carbon.

+1
source share
2 answers

No need for interruption. Caps Lock, Num Lock, and Scroll Lock are software controlled.

Note that this will not actually enable Caps Lock (forcing the user to enter text with full text), but you should not do this. If you need to enter text in a specific format, then you must make the necessary repairs for it, which may include its capitalization.

+3
source

You can even generate an HW interrupt from an unprivileged user space application in OS X. It sounds to me as if this is what you should request the OS from (i.e. turn Caps Lock on or off)

0
source

All Articles