Introduction: How to Code a Prank Program

About: Hello, I am Eli! I am a software developer, and the creator of the Future Software Development Group, as well as the YouTube channel Tech Now. I code in C++, Lua, and HTML (perhaps I will learn Javascript some…

In this post, you will learn how to make a prank program to prank your friends and family! It is a simple message, but it never closes!

Step 1: Make File

Start by opening File Explorer, and clicking on View> Show > Show File Name Extention. This will enable you to change the extension of your program file, which is important. Now create a new text document and rename it to whatever you want, but change the .txt extension to .vbs. If it asks you if you want to change the file name extension, click yes.

Step 2: Code the Program

Right-click on the file and select "Edit In Notepad," and then paste in the following code:

do

msgbox("You got pranked")

loop

This will run the command (a message box) in a loop, which means repeatedly. Since we have not specified an end to the loop, it will run forever!

All done! Just double-click it and watch it run (killing script in the task manager closes it!) Hope you enjoyed it!


Made by the Future Software Development Group