Dancing LED lights on keyboard using Notepad


Hope you have enjoyed my previous tricks on Notepad. Here I am going to show you to create simple VB (Visual Basic) script which will create dancing effect on LEDs present on keyboad. The effect will continuously do on off LEDs which are used to display status of Caps Lock, Scoll Lock and Num Lock.

Dancing LED lights on keyboard using Notepad
Dancing LED lights on keyboard using Notepad_FunWidTricks.Com

Steps you have to perform
1. Open "Notepad".
2. Copy and paste below code into it.
  • You can change the sleep time 120 to anything you want.
  • You can alter the sequence of "wshshell.sendkeys" statements.
Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 120
wshshell.sendkeys "{CAPSLOCK}"
wshshell.sendkeys "{SCROLLLOCK}"
wshshell.sendkeys "{NUMLOCK}"
loop
Dancing LED lights on keyboard using Notepad_FunWidTricks.Com
3. Save the file as "anyname.vbs". Here .vbs extenssion is necessary to execute the script.

Dancing LED lights on keyboard using Notepad_FunWidTricks.Com
4. Double click on "anyname.vbs" file looking like as below!

Dancing LED lights on keyboard using Notepad_FunWidTricks.Com

How to stop the script?


1. Open "Task Manage" using short keys "Ctrl+Alt+Del" or "Ctrl+Shift+Esc".
2. Look for the process having name as "Microsoft Windows Based Script Host".
3. Right click on it, select "End Task".

Dancing LED lights on keyboard using Notepad_FunWidTricks.Com


Link your website with us for free!



author

About Author

I’m Vinay Vernekar , a young Entrepreneur and a Technology blogger, currently living in Kolhapur, Maharashtra, India. Founder and Main author of Fun With Tricks. I am also running web hosting services at Host With Us and King Of Web Host. if you like this article, pin it with social media, subscribe to our newsletter. Follow me on Google Plus, Facebook, Linkedin and Twitter.

Know more about me!

Mail me your quries at admin@funwithtricks.com

Get Free Email Updates to your Inbox!