Keyboard Dancing LED Light Trick

As we know that keyboards having 3 LEDs 
   1. NUM LOCK
   2. CAPS LOCK
   3. SCROLL LOCK



This is a simple trick to blink your keyboard LED’s continuously by a simple batch programming (Visual Basic Script). Follow this simple steps:
Step 1 : Open Notepad and type the following code in notepad.
  
         Set WEBCHILLER =wscript.CreateObject("WScript.Shell")
    do
    wscript.sleep 100
    WEBCHILLER.sendkeys "{CAPSLOCK}"
    WEBCHILLER.sendkeys "{NUMLOCK}"
    WEBCHILLER.sendkeys "{SCROLLLOCK}"
    loop

Step 2 : Now Save This File as led.vbs ( Note: You can give any name but must .vbs)

Step 3 : Now double click that led.vbs File. You can see the dancing of your keyboard LED’s.

Step 4 : To stop this Dancing LED. Go to Task Manager. (Press Ctrl+Alt+Delete) and Got to Process Tab. Now in this tab select wscript.exe and end this process. 


Code Explanation:

1. Set WEBCHILLER =wscript.CreateObject("WScript.Shell")

      It will create an object. The WScript.Shell object provides functions to read system information and environment variables, work with the registry and manage shortcuts.

2. wscript.sleep 100

      It will Suspend the execution of the current script for the specified number of milliseconds.

3. WEBCHILLER.sendkeys "{CAPSLOCK}"
   WEBCHILLER.sendkeys "{NUMLOCK}"
   WEBCHILLER.sendkeys "{SCROLLLOCK}"

   It will Sends one or more keystrokes to the active window as if typed at the keyboard.For more detail go to this link :


If you have any query then tell me.


Emoticon Emoticon