Make REAL Windows Error Messages using JUST Notepad!
Jul 31st, 2007 by Vladimir Flemming
Do you want to make a funny joke on a classmate or some friend? Would you like to learn how you could make Windows Error Messages using Notepad?
The ideea is simple. Windows executes Visual Basic codes. A Visual Basic Script can be created using Notepad as well.
So…
Step 1. Start Notepad: Start -> Run -> Notepad.exe
Step 2. Write: x=MsgBox(”Here goes your Box Text Error Message”, 0+16, “Box Title”)
Step 3. File -> Save As
Step 4. Save the file with the name: “Error.vbs”
The trick is that the file extension should be VBS.
If you want this joke to be even more realistic you can for example change the file’s icon and there are planty things you can do but I won’t tell you today, I want you to start question yourself what you can do more
Later Edit:
On the request of Mr. X. we have to clarify some steps:
1. You can save your file wherever you want on your computer or removable disk
2. The file sould be executed(like you run a program) from withing a Windows computer
3. You can test it by executing it yourself (Step 2).
We are plesed that you react to this article and that you show interest in our articles. ![]()
Thanks for sharing the info.
There are questions-
1.Where do you save the file “Error.vbs”?
2.Under what situation this error message will be displayed?
3.How to test this error message? Are there any specific steps to test it?
Based on the information given above it doesn’t answer any of my questions. This is just LAME and RIDICULOUS. ASSHOLE.
1. you save it anywhere
2. it becomes visible when you open the file
3. you dont fucking test it, its a joke. its a tiny example of vb script. learn how to use a computer before being an ass.
Mr. X, we take into consideration that there can be users who do not know what you just asked us, that’s why we updated this article. What we were not written should be common knowledge for any person whom this article is addressing to.
Brent answered already to your questions, so some special thanks from our team goes to Brent! Thanks!
Also, I would like you to watch your language while you are commenting on our blog. It is fair for the writters and the readers too! Thanks for visiting.
Hi, i have no name, i just want to know why i get error s like Expected End or somthing when i try to exicute this. Help please email mikamikira@aim.com with an awnser please, because why waste favorites space with a site you will only visit once, undoubtly ool article if i get this to work!
I already know how to make a message. I would like to know how to configure your own buttons. You know… you type the word that you want the button to say.
good
I agree with terry. Will some1 please email me an answer to her question? my email is stickerhead@gmail.com
hay tx 4 the post i also know how to create the msg but i also want to know the rest of the symbols like 0+23 or something like that
0+16
erm, that website dont work walt
hey if any of you send the answer to Terry and Persons question, can i get it too? i would like to be abel to do tthat too……
forgot to put where to, please send it to Pyromaniak9105@aol.com, thanks
This Was Great! If you want to test this, open notepad, then go to open,( now select all files), now, right click the notepad file and select open, and your window will pop up.
hey is there anyway to make that error message actually do anything? like shut down computer when you hit OK? just wondering, I’m not trying to screw anybody or anything like that.
And also, here are the other button configrations
0 OK button
1 OK and cancel buttons
2 Abort, Retry, Ignore buttons
3 Yes, No and Cancel buttons
4 Yes and No button
5 Retry and Cancel buttons
16 Critical Message icon
32 Warning query icon
48 Warning message icon
64 Information message box
0 Normal message box
4096 Always stays on top of the desktop
Is there a way to make custom buttons?
Yeah, I want to know how you can make the buttons actually do stuff like shut off your computer or open up a videogame or something. Email me at antihero91@live.com thanx
i also would like to know how to make custom buttons and make them do things like shut down the computer open sumthing or jsut loop the message email me boon.die@hotmail.com
to loop the message just copy and paste it a thousand times when you press ok it will just open another message box
Heres an easier way of making Multi-Msges pop up just do this….
x = 1
WHILE x
Sorry last one messed up on me…. Here is how to do it.
x = 1
WHILE x = 100000000000000000
message = msgbox(”Ultimate Error Message!!!”, 16, “U.E.M!!!”)
x = x + 1
WEND
See that makes 100,000,000,000,000,000 MSGS pop-up over and over again…… But after you put ” WHILE x = ” put the Arrow pointing to the Left… Hope you know what i mean becuz this stupid thing keeps mistaking it as a HTML code……
do you mean WHILE x
does anyone know how its possible to run a .bat file from within this application?
example,
If answer = vbOk Then
Run?
hope someone can help
ok to answer one question…. he means while because it is a loop….
While X is less than 10000000000000
Do this
End the While
and the arrow things are your comma and period buttons….
as for running programs/files try looking up the shell command….
it might help
OOPSS!!! forgot to point out that you need to HOLD shift and press the period and comma buttons to get the Greater than and less than symbols…..
also lol, its a funny code but making a million msgboxs pop up on someones screeen is more of a piss off because it gunna crash your computer…
hello..i can’t open this file..that .vbs file….what program should i use to open it?
i got a few question
1.how u do the yes and no msg boxs
2.how do u link it to a action or program
3. and can u email the answers to maderagon25@gmail.com
why the message show one time only
if you wana make yes and no message u can go this website
http://www.techeblog.com/index.php/tech-gadget/how-to-make-windows-error-messages-in-notepad
Thanks alot
can u put this on a website?? like when they enter than they click OK to enter the website or blog…if u noe pls tell me or email limy1995@hotmail.com pls tell me
All Righty, Here is how you can program a file in notepad that will launch anything you want:
‘Start Code
Dim Program
Set Program = CreateObject(”Wscript.Shell”)
Program.Run “yourapp.exe”
Wscript.Quit(0)
‘End code
IF you want to prompt the user before he/she opens the program:
Dim Pro
Set Program = CreateObject(”Wscript.Shell”)
Pro = MsgBox(”Do you wish to continue?”,vbYesNo + vbQuestion, “”)
IF Pro = 6 THEN
Dim Program
Program.Run “yourapp.exe”
Else
Wscript.Quit(0)
End IF
If you want to put it in a webpage just do this:
Sub Start()
‘Your VBScript Code
End Sub
~That should do it
Terry:
You can’t assign captions to buttons in VBscript.
If you want to:
Download Microsoft Visual Basic Express 2008
And Buy this book.
Sorry, but this comment stuff won’t let me use tags.
Here is how you get your computer to shut down:
Take VBSCript Genius’ code and change this line
Program.Run “yourapp.exe”
to this:
Program.Run “shutdown.exe -s”
i dont get it, i used this code
WHILE x =
i dont get it, i used the code
#19EricHenry92
showed above with the
i dont get it, i used the code
#19EricHenry92
showed above with the
arrow above the comma that is pointing left after the equel sign,
and i open it and it only shows it once, i am trying to to the error that repeats 100000000000000000 times
what am i doing wrong?
please help me
I get Error VBS invalid characters??!!!???
i dont get it, i used the code
#19EricHenry92
showed above with the
arrow above the comma that is pointing left after the equel sign,
and i open it and it only shows it once, i am trying to to the error that repeats 100000000000000000 times
what am i doing wrong?
please help me
It doesnt matter where you save it(usually desktop) than double click.
here is how you do it, First you have to put DO at the first paragraph, than you write’messege box’ and write what you want, than write loop at the end so it looks something like this:
DO
‘msgbox’ virus detected
Loop
save it as a _______.vbs on the desktop than click it to open.
so what does the encoding have to be?