July 07, 2013

Keyboard Lights go DISCO | Cool Notepad Trick

19:35 Posted by Durga swaroop Perla No comments
We all use keyboard for typing. But how many of you can play with your keyboard?
This is an interesting and fun way to make the LED's on your Keyboard blink in Disco Style. Caps Lock, Num Lock, Scroll Lock are the three LED's which we'll use for this program. With the following code we can make them blink rhythmically. This trick can be used as a prank to fool your friends. This is a small program written in Visual Basic. So, if you are familiar with VB you can tweak it a little or else you can just work with the program given below. 

STEPS:
1. Open Notepad on your computer
2. Copy the following code and paste in to the Notepad file
Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 400
wshshell.sendkeys "{CAPSLOCK}"
wshshell.sendkeys "{NUMLOCK}"
wshshell.sendkeys "{SCROLLLOCK}"
loop
3. Save it with any name you want but with the extension ' .vbs '
    Example: disco.vbs
4.Now, double click on the file to open it and you can see the LED's blinking lie a disco light.

How To Stop the script:
1. To stop the script, open TASK MANAGER 
2. Go to the Processes tab
3. In the list of processes look for the name " wscript.exe " and click End Process. That will stop the script and the lights will stop doing the disco thingy.


Note:
1.While this program is running, when you try to type anything it will contain both uppercase and lower case letters.
2. This program is known to work in XP, Vista, Windows 7 & Windows 8. But if you are not able to make this work, let me know.

Variation to the above script:
1. The above code makes them all blink at once. But the following code will make them to blink them sequentially.So, try this too
Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{CAPSLOCK}"
wscript.sleep 100
wshshell.sendkeys "{NUMLOCK}"
wscript.sleep 100
wshshell.sendkeys "{SCROLLLOCK}"
wscript.sleep 100
loop

Thanks for visiting and let us know what you think of our blog!!

0 comments:

Post a Comment

Please Enter your comment here......