title: How Can I Turn On/Off Caps Lock, Scroll Lock, and Num Lock Programmatically
body: <p>Is there a method to turn on/off Caps Lock, Scroll Lock and Num Lock on Windows?</p>
  
  <p>Please post the code snippet in any language... but my preference is C/C++ or Java.</p>
  
  <p>P.S.  I'm making a Morse Code program which blinks the Scroll Lock LED.</p>