开发者

Activate "Caps lock" key for different languages

开发者 https://www.devze.com 2022-12-27 02:31 出处:网络
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.

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}""")
0

精彩评论

暂无评论...
验证码 换一张
取 消