The most wanted .vbs Hacks

Software

VBScript (Visual Basic Scripting Edition) is an Active Scripting language developed by Microsoft that is modeled on Visual Basic.This indeed is a very interesting scripting language and I will share some of the best .vbs hacks which you can use to have loads of fun.We have shared a post on this blog which uses .vbs scripting and helps toConvert text to speech on a PC without any software.You can send these to your friends too ;)

How to use the scripts provided?

To use the scripts provided in this article you need to open a new notepad,and copy-paste the code provided within the different headings.Then goto the file menu and click “save as..” .Save it in your desktop with the name “anything.vbs” .To use the script , double click on the icon on your desktop.

Make the CD tray open and close repeatedly

This code repeatedly opens and closes the cd tray. The code is :

Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
do
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
loop
end if
You press ctrl + alt + delete and go to processes, and end wscript.exe.
T

Turns on and off your capslock repeatedly

This will turn your caps lock on and off every tenth of a second. The code is below :

Set wshShell =wscript.CreateObject("WScript.Shell") 
do 
wscript.sleep 100 
wshshell.sendkeys "{CAPSLOCK}" 
loop
You can press ctrl + alt + delete and go to processes, and end wscript.exe.

 

 

Notepad Hack

This is one of my favorite hacks (is also known as ghost typing) what it does is opens a notepad and the typing starts automatically and you can change what it displays! The code is below :

Set wshshell = wscript.CreateObject("WScript.Shell") 
Wshshell.run "Notepad" 
wscript.sleep 400
wshshell.sendkeys "T"
wscript.sleep 100
wshshell.sendkeys "e"
wscript.sleep 120
wshshell.sendkeys "c"
wscript.sleep 200
wshshell.sendkeys "h"
wscript.sleep 140
wshshell.sendkeys "n"
wscript.sleep 100
wshshell.sendkeys "o"
wscript.sleep 50
wshshell.sendkeys "V"
wscript.sleep 120
wshshell.sendkeys "a"
wscript.sleep 150
wshshell.sendkeys "l"
wscript.sleep 170
wshshell.sendkeys "l"
wscript.sleep 200
wshshell.sendkeys "e"
wscript.sleep 100
wshshell.sendkeys "y"
wscript.sleep 50
wshshell.sendkeys " "
wscript.sleep 120
wshshell.sendkeys "i"
wscript.sleep 160
wshshell.sendkeys "s"
wscript.sleep 200
wshshell.sendkeys " "
wscript.sleep 100
wshshell.sendkeys "g"
wscript.sleep 100
wshshell.sendkeys "o"
wscript.sleep 200
wshshell.sendkeys "o"
wscript.sleep 100
wshshell.sendkeys "d"
Instrucions :
Whatever is typed is shown character-wise . You can edit it to suit your needs , just change the characters and for separating words add a space instead of a character.Nice trick for annoying users.
 

Force Shutdown a Computer

This command will force shut-down the computer after the time specified.Can come handy :-p

set wshshell = wscript.CreateObject("wscript.shell")
wshshell.run "shutdown.exe -s -t 6"
wscript.sleep 2000
To change the shutdown minutes,change the “6″ in the code!
 
Please share this post and tell us what you think via the comment form below!

Leave a Reply

Your email address will not be published. Required fields are marked *