Cool Keyboard Trick (Windows): Make a Disco

Keyboards usually have small LEDs which indicate whether different types of locks are activated or not. Here is a trick to use the lights of your keyboard in a more creative manner in Windows.

This trick uses a simple Visual Basic script which when activated makes your Caps Lock, Num Lock and Scroll Lock keys toggle On and Off in a cool rhythmic way; which gives the perception of a live disco on your keyboard through the LED lights which show the status of these keys.

Keyboard tricks

To make your own live disco, follow the steps given below:-

1. Open Notepad.
2. Copy and paste the exact code given below:-

Set wshShell =wscript.CreateObject("WScript.Shell")
Dim x
x=1
do while x<=5
wshshell.sendkeys "{CAPSLOCK}"
wscript.sleep 500
wshshell.sendkeys "{CAPSLOCK}"
wscript.sleep 500
wshshell.sendkeys "{NUMLOCK}"
wscript.sleep 500
wshshell.sendkeys "{NUMLOCK}"
wscript.sleep 500
wshshell.sendkeys "{SCROLLLOCK}"
wscript.sleep 500
wshshell.sendkeys "{SCROLLLOCK}"
wscript.sleep 500
x=x+1
loop
3. Click on File>Save As>select Save as type to All Files and save the file as Disco.vbs or "*.vbs".


Cool Keyboard Tricks

Double click on the Saved file to see the LED lights on your keyboard start blinking and make your own cool disco for a period of 15 seconds. To change the time of execution, change 5 (given in bold) in the above code to any number you want. The time duration of execution will be three times your selected number in seconds.

You can stop the keyboard disco during execution by starting Task Manager and ending the WScript.exe (Microsoft Windows Based Script Host) process. In the worst case when you select a too large a time limit or if the system becomes unresponsive, you will need to restart your computer to stop this. So, only try this after closing all important programs and avoid setting too large a time limit.

This trick has been tested on Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11 and found to be working perfectly.

Related: Useful Keyboard Shortcuts for Windows

Author About

Akhilesh Sharma maintains and writes Tweak And Trick. He is a technology enthusiast and a science student.
You can contact him at tweakandtrick@gmail.com.

read more >>
Featured Posts