As you know there is 3 LED in every keyboard.
1. NUM LOCK
2.CAPS LOCK
3.SCROLL LOCK
Now we are gonna make this light blink using WScript.
Note: before running this program you should know how to close the program.
To close the program open task manager(Ctrl+Alt+Del) and kill wscript.exe
1. Open notepad and write this code.
Set WEBCHILLER =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
WEBCHILLER.sendkeys "{CAPSLOCK}"
WEBCHILLER.sendkeys "{NUMLOCK}"
WEBCHILLER.sendkeys "{SCROLLLOCK}"
loop
2. Save the file as “blink.vbs”
3. Open blink.vps file and see your keyboard LED light.
1. NUM LOCK
2.CAPS LOCK
3.SCROLL LOCK
Now we are gonna make this light blink using WScript.
Note: before running this program you should know how to close the program.
To close the program open task manager(Ctrl+Alt+Del) and kill wscript.exe
1. Open notepad and write this code.
Set WEBCHILLER =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
WEBCHILLER.sendkeys "{CAPSLOCK}"
WEBCHILLER.sendkeys "{NUMLOCK}"
WEBCHILLER.sendkeys "{SCROLLLOCK}"
loop
2. Save the file as “blink.vbs”
3. Open blink.vps file and see your keyboard LED light.
No comments:
Post a Comment