Skip to main content

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

A backlit computer keyboard

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

  1. Open Notepad.
  2. Paste this exactly:
Set wshShell = wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{CAPSLOCK}"
wshshell.sendkeys "{NUMLOCK}"
wshshell.sendkeys "{SCROLLLOCK}"
loop
  1. Save it as Disco.vbs (choose "All files" as the type so it does not save as .txt).
  2. 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 wscript.sleep 100 sets the speed, lower the number for a faster flash.

How to stop it (important)

Because it runs in an infinite loop, it will not stop on its own. To end it:

  1. Open Task Manager (Ctrl + Shift + Esc).
  2. Find Microsoft Windows Based Script Host (wscript.exe).
  3. Select it and click End task.

Your keyboard also becomes twitchy while it runs (the locks keep toggling), so stop it before you need to type normally.

A couple more harmless fun scripts

  • Talking PC: a one-line VBScript with CreateObject("SAPI.SpVoice").Speak "Hello" makes Windows say a phrase aloud.
  • Auto-typing: SendKeys can type a message into the active window, fun for a harmless prank on your own PC.

The non-obvious safety note

VBScript is powerful, which is exactly why you should only run scripts you understand. Never double-click a .vbs file someone sends you, the same SendKeys and Shell features that make a harmless disco can be used maliciously. Type these yourself from a source you trust, like this one, and read what each line does first.

Frequently asked questions

How do I make my keyboard LEDs flash like a disco?

Paste the provided VBScript into Notepad, save it as Disco.vbs, and double-click it. It toggles the Caps, Num and Scroll Lock LEDs in a loop.

How do I stop the disco keyboard script?

Open Task Manager, find Microsoft Windows Based Script Host (wscript.exe), select it, and click End task. It runs in an infinite loop otherwise.

Is the disco VBScript safe?

The script itself is harmless and just toggles lock keys. But only ever run .vbs files you understand or wrote yourself, never ones sent by others.

Can I change the flashing speed?

Yes. The wscript.sleep 100 line sets the delay in milliseconds. Lower it for faster flashing, raise it to slow it down.

Comments

Popular posts from this blog

How to Recover Deleted Files for Free (Better Than a Cracked Tool)

Short answer: you do not need a cracked 7-Data Recovery serial, because excellent free tools like Recuva and PhotoRec recover deleted files, and the most important factor is not the software at all, it is stopping use of the drive immediately. Here is how to recover files the safe, effective way. The one rule that decides success: stop using the drive When you delete a file, the data is not erased, the space is just marked reusable. The moment you keep saving new files, you risk overwriting the deleted data permanently. So the instant you realize something is gone: stop using that drive . Do not install recovery software onto it either, download it to a different drive or USB stick. The best free recovery tools Recuva , free, friendly, great for recovering deleted documents, photos and files from Windows drives and USB sticks. PhotoRec , free and open source, extremely powerful, especially for photos and media, though its interface is basic. Windows File History / backups , ...

How to Completely Uninstall Programs on Windows (Free Tools and Tips)

Short answer: you do not need a cracked Revo Uninstaller Pro, because Revo has a capable free version and there are free open-source alternatives that remove programs completely, leftover files and registry entries included. Here is how to uninstall cleanly and why leftovers matter. Why leftovers are a problem Windows' built-in uninstaller often leaves behind folders, registry keys and startup entries. Over time these accumulate, clutter your system, and occasionally cause conflicts when you reinstall software. A dedicated uninstaller sweeps them up. Free tools that remove programs completely Revo Uninstaller Free , uninstalls the program, then scans for and removes leftover files and registry entries. The free version covers what most people need. Bulk Crap Uninstaller , free, open source, and excellent for removing many programs at once and cleaning leftovers. How to uninstall cleanly with Revo Free Open Revo and select the program. Click Uninstall; let the progra...

Oxford Advanced Learner's Dictionary: The Legit App and Free Alternatives

Short answer: the Oxford Advanced Learner's Dictionary (OALD) is one of the best tools for learning English properly, and it is worth getting the official app rather than a cracked APK. Cracked dictionary APKs are risky and often ship without the real audio. Below is what makes OALD special and the free apps I reach for day to day. Why OALD is different from a normal dictionary OALD is built for learners, not native speakers. It explains 184,500 words and meanings using a simple 3000-word defining vocabulary, so definitions are actually easy to understand. It includes real recorded British and American pronunciation (not text-to-speech), an integrated thesaurus, and over 83,000 collocations that show which words naturally go together. The feature most people overlook: collocations This is the non-obvious reason I recommend OALD to anyone serious about English. Knowing a word is easy; knowing which words go with it is what makes you sound fluent. OALD highlights those pairi...