Posted by : Unknown Tuesday, January 10, 2012



Do you want to see your keyboard lights play disco? Yes, you heard that right! You can make your keyboard LEDs dance, with a simple Visual Basic script. Now, without much ado, let me give you the script.

Copy the following script into a notepad. Then save that file with an extension “.vbs”. Now click on the new file with a script like icon. You see the magic! I am sure you will enjoy seeing them. Here are the codes you need to paste:

This code makes the LEDs to dance randomly.


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

To end this disco, you need to end a process called “wscript.exe”. For best results, keep all the LEDs “Off” before starting the script.

It's more fun when you bug your friends by this trick.Put it in their startup,and enjoy the fun! ;)

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Popular Post

Total Pageviews

A blog completely dedicated to tech-lovers. Come share your views and let the tech-world grow. Technology rules the world. Why should we stay slaves when we can be the masters. Hand-in-hand with technology.

- Copyright © Slesa Adhikari