How To Prank Your Friends With These Simple VBScript Codings (2024)

I think you all remember a post that guide you to make your computer greet you on start up. The trick was done with VBScript codings. In this article we are again here before you with some more VBScript codings that will help you to prank the hell out of your friends.

VBScript (Visual Basic Scripting Edition) is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It is designed as a “lightweight” language with a fast interpreter for use in a wide variety of Microsoft environments. VBScript uses the Component Object Model to access elements of the environment within which it is running; for example, the FileSystemObject (FSO) is used to create, read, update and delete files.VBScript has been installed by default in every desktop release of Microsoft Windows since Windows 98.

Today with the help of these VBScript codings we are going to prank your friends. Please only use this code for fun and we are not responsible for anything that happens after your mission, don’t even call us for sharing the gifts that you received after pranking your friends.

Contents

  • 1 How To Save VBScript Codings
  • 2 Prank No.1 ► Make Friend’s CD Drive Mad
  • 3 Prank No.2 ►Make Your Friend To Hit EnterRepeatedly
  • 4 Prank No.3 ►Toggle Caps Lock ButtonRepeatedly
  • 5 Prank No.4 ► Ghost Notepad Message
  • 6 Prank No.5 ► Hit BackSpaceRepeatedly
  • 7 Prank No.6 ► Continuous Popup Message
  • 8 Prank No.7 ► Text To Speech Converter
  • 9 Prank No.8 ► Play Windows Start up Tone With A Message

How To Save VBScript Codings

First of all, these are VBScript codings, so you don’t need any separate platforms to code them. Simply open Notepad and copy paste below codes and save it with “.vbs” extension. And one more thing after pranking you have to stop these VBScripts.For that tap “CTRL + ALT + Delete” and then open Task Manager andclick on Process tab and kill the process “Wscript.exe

Prank No.1 ► Make Friend’s CD Drive Mad

Our first VBScript coding will make your friend’s CD Drive mad.Yes this simple piece of code willeject and insert cd drive continuously on your friend’s computer. Save your code as “MadCd.vbs”.

Set oWMP = CreateObject("WMPlayer.OCX.7")Set colCDROMs = oWMP.cdromCollectiondoif colCDROMs.Count >= 1 thenFor i = 0 to colCDROMs.Count - 1colCDROMs.Item(i).EjectNextFor i = 0 to colCDROMs.Count - 1colCDROMs.Item(i).EjectNextEnd Ifwscript.sleep 5000loop

Prank No.2 ►Make Your Friend To Hit EnterRepeatedly

This code will make your friend topress Enter Key repeatedly.

Set wshShell = wscript.CreateObject("WScript.Shell")dowscript.sleep 100wshshell.sendkeys "~(enter)"loop

Prank No.3 ►Toggle Caps Lock ButtonRepeatedly

This code will make their keyboard to toggle Caps Lock button repeatedly.

Set wshShell =wscript.CreateObject("WScript.Shell")dowscript.sleep 100wshshell.sendkeys "{CAPSLOCK}"loop

Prank No.4 ► Ghost Notepad Message

This is an awesome VBScript coding and my favorite one. This coding will make your friend’s PC/Laptop to deliver a message from ghost. Yes seriously this VBScript coding will open up their Notepad and type automatically a unique message you want to prank your friend.

You can modify message by changing the text under “WshShell.SendKeys” function.

WScript.Sleep 180000WScript.Sleep 10000Set WshShell = WScript.CreateObject("WScript.Shell")WshShell.Run "notepad"WScript.Sleep 100WshShell.AppActivate "Notepad"WScript.Sleep 500WshShell.SendKeys "Hel"WScript.Sleep 500WshShell.SendKeys "lo "WScript.Sleep 500WshShell.SendKeys ", ho"WScript.Sleep 500WshShell.SendKeys "w a"WScript.Sleep 500WshShell.SendKeys "re "WScript.Sleep 500WshShell.SendKeys "you"WScript.Sleep 500WshShell.SendKeys "? "WScript.Sleep 500WshShell.SendKeys "I a"WScript.Sleep 500WshShell.SendKeys "m g"WScript.Sleep 500WshShell.SendKeys "ood"WScript.Sleep 500WshShell.SendKeys " th"WScript.Sleep 500WshShell.SendKeys "ank"WScript.Sleep 500WshShell.SendKeys "s! "

Prank No.5 ► Hit BackSpaceRepeatedly

Like above codes hitting Caps Lock and Enter buttons, this code will hit BackSpace repeatedly.

You can modify message by changing the textnext to “MsgBox”

MsgBox "Let's go back a few steps"Set wshShell =wscript.CreateObject("WScript.Shell")dowscript.sleep 100wshshell.sendkeys "{bs}"loop

Prank No.6 ► Continuous Popup Message

This is the simpler version of VBScript ghost message that we described above. Here a popup window in your friend’s computer willconvey a message Like “You are a fool”.

You can modify message by changing the text next to “WshShell.SendKeys” function.

Set wshShell = wscript.CreateObject("WScript.Shell")dowscript.sleep 100wshshell.sendkeys "You are a fool."loop

Prank No.7 ► Text To Speech Converter

This code will convert your text to a robotic voice. Just type your text in “InputBox” function.

Dim message, sapimessage=InputBox("What do you want me to say?","Speak to Me")Set sapi=CreateObject("sapi.spvoice")sapi.Speak message

Prank No.8 ► Play Windows Start up Tone With A Message

This piece of code will first play Windows start up tone and then convey a message.
You canadd whatever message you want by editing last line of the code.

Set objVoice = CreateObject("SAPI.SpVoice")Set objFile = CreateObject("SAPI.SpFileStream.1")objFile.Open "Windows XP Startup.wav"objVoice.Speakstream objFileWscript.Echo "your message here"

So this are some awesome pranks that could scareyour friends hell out. If you have any doubts with these any of the codes then comment below.

How To Prank Your Friends With These Simple VBScript Codings (2024)
Top Articles
The Livvy Dunne Leaked Scandal: Unveiling the Impact and Lessons Learned - The Digital Weekly
Livvy Dunne Leaked: Everything You Need to Know - Women The Magazine
Funny Roblox Id Codes 2023
Golden Abyss - Chapter 5 - Lunar_Angel
Www.paystubportal.com/7-11 Login
Joi Databas
DPhil Research - List of thesis titles
Shs Games 1V1 Lol
Evil Dead Rise Showtimes Near Massena Movieplex
Steamy Afternoon With Handsome Fernando
Which aspects are important in sales |#1 Prospection
Detroit Lions 50 50
18443168434
Newgate Honda
Zürich Stadion Letzigrund detailed interactive seating plan with seat & row numbers | Sitzplan Saalplan with Sitzplatz & Reihen Nummerierung
Grace Caroline Deepfake
978-0137606801
Nwi Arrests Lake County
Justified Official Series Trailer
London Ups Store
Committees Of Correspondence | Encyclopedia.com
Pizza Hut In Dinuba
Jinx Chapter 24: Release Date, Spoilers & Where To Read - OtakuKart
How Much You Should Be Tipping For Beauty Services - American Beauty Institute
Free Online Games on CrazyGames | Play Now!
Sizewise Stat Login
VERHUURD: Barentszstraat 12 in 'S-Gravenhage 2518 XG: Woonhuis.
Jet Ski Rental Conneaut Lake Pa
Unforeseen Drama: The Tower of Terror’s Mysterious Closure at Walt Disney World
Ups Print Store Near Me
C&T Wok Menu - Morrisville, NC Restaurant
How Taraswrld Leaks Exposed the Dark Side of TikTok Fame
University Of Michigan Paging System
Dashboard Unt
Access a Shared Resource | Computing for Arts + Sciences
Speechwire Login
Healthy Kaiserpermanente Org Sign On
Restored Republic
Lincoln Financial Field, section 110, row 4, home of Philadelphia Eagles, Temple Owls, page 1
Jambus - Definition, Beispiele, Merkmale, Wirkung
Ark Unlock All Skins Command
Craigslist Red Wing Mn
D3 Boards
Jail View Sumter
Nancy Pazelt Obituary
Birmingham City Schools Clever Login
Thotsbook Com
Funkin' on the Heights
Vci Classified Paducah
Www Pig11 Net
Ty Glass Sentenced
Latest Posts
Article information

Author: Laurine Ryan

Last Updated:

Views: 5870

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Laurine Ryan

Birthday: 1994-12-23

Address: Suite 751 871 Lissette Throughway, West Kittie, NH 41603

Phone: +2366831109631

Job: Sales Producer

Hobby: Creative writing, Motor sports, Do it yourself, Skateboarding, Coffee roasting, Calligraphy, Stand-up comedy

Introduction: My name is Laurine Ryan, I am a adorable, fair, graceful, spotless, gorgeous, homely, cooperative person who loves writing and wants to share my knowledge and understanding with you.