1. Caps Lock Key
- Open Notepad.
- Paste the following code in the notepad file:
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{CAPSLOCK}”
loop
- Save the file with anyname and .vbs extension. and close it.
- Now open the newly created file and see how the caps lock key behaves on your keyboard!
2. Hit Enter Key Continuously
- Open Notepad.
- Paste the following code in the notepad file:
Set wshShell = wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “~(enter)”
loop
- Save the file with any name and .vbs extension and close it.
- Now open the newly created file and see how the enter key behaves!
3. Hit Backspace Key Continuously
- Open Notepad.
- Paste the following code in the notepad file:
MsgBox “Lets Rumble”
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{bs}”
loop
- Save the file with any name and with .vbs extension and close it.
- Now open the newly created file and see how the key behaves!
In order to end the vbs script (stop continuous key presses), open task manager and end thewscript.exe process as shown in image below.
No comments:
Post a Comment