I want to write a program that can turn on Caps lock key without having the user to press the physical key on his keyboard.
Is there a way to do so in Flash, Javascript - if not, any other langu开发者_运维问答ages ?
UGG, THAT WOULD BE ANNOYING.
If you need to display user input in caps you can transform the text when you process the input in the backend, or style it properly when you render the text on the frontend.
Finaly, I've been using Python and the SendKey library for Windows. http://www.rutherfurd.net/python/sendkeys/
capslock.py
import SendKeys
SendKeys.SendKeys("""{CAPSLOCK}""")
精彩评论