Tuesday 6 January 2015

Disco lighting on your keyboard

This is a code to make your's keyboard capslock,numlock,scrolllock indicator light turn on/off automatically

Code -

 Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 200
wshshell.sendkeys "{SCROLLLOCK}"
wshshell.sendkeys "{NUMLOCK}"
wshshell.sendkeys "{CAPSLOCK}"
loop

Instructions -

Copy the above code in notepad and save it as discokeyboard.vbs.Double click on the file to run it

Note - 

This code is only for fun purpose.It causes no harm to your P.C
You can change the on/off speed of lights by changing the value 200 in line 3 to any numeric value.
While saving choose All Files in save as type option.

No comments:

Post a Comment