Skip to main content

Keyboard Disco Lights

Computer keyboards come up with led lights that indicates whether some particular key function out of Capslock, Scrol lock or numlock is activated or not. Here is a mysterious notepack trick by which you can make a fun program that automatically turn these notification lights on and off repeatedly.

First of all open Notepad and copy the following code.


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


Save it as keyboard.vbs. Open the file, you will observe that the notification lights on keyboard gets turned on and off repeatedly just like disco lights.


For stopping the process, simply open Task Manager by pressing alt+ctrl+delete buttons simultaneously and under processes tab, find the process named wscripts.exe. Right click on it and click on End Process option.