Skip to main content

Posts

Showing posts with the label Windows Tricks

Cool Windows Keyboard Tricks: Make Your LEDs Dance (and More Fun Scripts)

Short answer: you can make your keyboard's Caps Lock, Num Lock and Scroll Lock LEDs flash like a mini disco using a tiny Windows VBScript, no software needed. It is a classic, harmless trick I still enjoy showing people. Here is the script, how it works, how to stop it, and a few other fun tricks, plus the safety notes that matter. The disco LED trick Open Notepad . Paste this exactly: Set wshShell = wscript.CreateObject("WScript.Shell") do wscript.sleep 100 wshshell.sendkeys "{CAPSLOCK}" wshshell.sendkeys "{NUMLOCK}" wshshell.sendkeys "{SCROLLLOCK}" loop Save it as Disco.vbs (choose "All files" as the type so it does not save as .txt). Double-click the file. Your keyboard LEDs will flash in rhythm. How it works The script creates a Windows Shell object and, in an endless loop, sends the Caps/Num/Scroll Lock key presses every 100 milliseconds. Each press toggles that lock's LED, so they blink rapidly. The wscrip...