views:

89

answers:

2

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 languages ?

+1  A: 

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.

digitaldreamer
I'm building a device without any input from the user, this "Caps lock" thing is just a hack to turn an external LED on.
Pierre Valade
A: 

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}""")
Pierre Valade