1.

Solve : Caps Lock Toggle in CMD?

Answer»

Hello,

Is there a command to toggle the caps lock key on and off? I am working with a batch file, and I would like to have the batch turn on CAPS when running and turn it off when it exits.

Thanks! Google is your friend !

SEE here -> http://support.microsoft.com/kb/71511

Graham@ Graham

Thanks for the tip! I TRIED their directions, but sadly it will not work. I can create the .COM file and everything, but it will not turn caps on. Back in the day, ONE could edit the config.sys file. But that only affected boot-up not runtime.

Other things that might have been "better brought to your attention yesterday."

  • I am using Windows XP Pro.
  • I don't have DOS installed separately.
  • Coffee may be the answer.

I will run with your earlier piece of advice and ask the Google sages and see what else I may find. I was really hoping it would be something simple vs compiling assembler code. what about this link ?
http://answers.google.com/answers/threadview?id=411459

Graham@ Graham

I read that second link and I am avoiding downloading other SOFTWARE if possible. I did find a script that will send the key, but cannot check current state of the caps lock.

Here is the script:
set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{CAPSLOCK}"

Which may work ok for my purposes as long as I remember to keep my caps lock key off by default. I might try to keep digging to find any information about testing conditions, but I may just call it here.

Thanks for the help!!I cant believe how long Ive been searching for a solution for this !

this page http://www.robvanderwoude.com/debug.html#KeyLocks

explains why the caps_on program does not work using XP (or greater) ... he shows a batch that will test the status of the caps etc locks -- depending on this, you could call your vbscript to toggle the status

GrahamQuote from: redeye on January 02, 2008, 09:51:14 AM
Hello,

Is there a command to toggle the caps lock key on and off? I am working with a batch file, and I would like to have the batch turn on CAPS when running and turn it off when it exits.

Thanks!
you may WANT to show what you are doing in the batch file. In a batch, its non-interactive, so I don't see why you want to turn on CAPS.


Discussion

No Comment Found