How to create a simple message box on windows 7/8

Status
Not open for further replies.

minstarmin

Honorable
Dec 18, 2013
4
0
10,510
Hello, today I will show you how to make a fake virus (or any other kind of message box) on Windows 7 or Windows 8.

What you will need:
Windows 7 OR Windows 8
Enough space for a small .vbs file

[-Getting Started-]

First what you are going to do is create a .txt file by right-clicking on your desktop and selecting
New > Text document. Give it a convincing name that someone will want to click on. Then, copy and paste (Highlight and Ctrl+C to copy, Ctrl+V to paste)
this code into the .txt file you just made:

x=MsgBox("Your message here", 0+48, "Title at the top of the message")

Then save that as a .vbs file (File > Save As > Drop-down box at bottom of page: All Files, then enter .vbs after the file name) and when you double-click the .vbs file you just made, a little box should pop up saying the text you put in along with a "critical error" symbol and an "OK" button. If you want to change the symbol/buttons, here is the format/code to put in the "0+48" section:

Format: ( Button Code + Symbol Code )

Button Codes:
0 = OK Button
1 = OK / Cancel Button
2 = Abort / Retry / Ignore Button
3 = Yes / No / Cancel Button
4 = Yes / No Button
5 = Retry / Cancel Button
Symbol Codes:
16 = Critical Icon
32 = Help Icon
48 = Warning Icon
64 = Information Icon

I hope this tutorial helped you and that you can put it to good use!
 
Status
Not open for further replies.