Toggle caps
lock automatically
Hello Friends, I think all
of you have seen disco light effect in which light is turning on/off
continuously.
I am going to tell a small
VB script, which will toggle caps lock key infinitely at interval of 0.1 sec.
You can perform the same
with other keys like Num lock and Scroll lock.
I am
performing with Caps lock because an LED Glows with Caps lock On and you can
see effect of disco light with it or you can irritate your victim by installing
this script at start-up.
Follow the Steps :
1.) Open Notepad and copy
the script given below into your notepad.
Set wshShell
=wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{CAPSLOCK}"
loop
2.) wscript.sleep 100 :
Here 100 is the sleep interval between toggle in milliseconds
3.) Now Save it with
extension as .vbs , like "script.vbs"
4.) Run it & see the
magic.
Note : You can change the do loop to For loop. You can
edit the Do Loop to control it with a counter Variable.
0 comments:
Post a Comment