OMAR WEBDESIGN

WELCOME TO OMAR COMPANY  

Headlines

NEW INNOVATION full story...

PHP full story...

JAVA full story...

PYTHON full story...

VBS full story...

SCRIPT full story...

sn

BASIC VBS FOR MESSAGE

MAKES IT EASY FOR PROGRAMMERS

First off, I will show you many examples of different styles of error messages that can be useful for conveying different ideas or pranking different people.

Open notepad (if you don't know where that is, just go start->run and type "notepad.exe" without the quotes and hit enter).  Here are the different error codes and what they do.  By the way, just edit the original and change the number, as retyping all of these would take a LONG time.

text=msgbox ("Message",0,"Title")     -This is a basic message with a beep and an ok button.
text=msgbox ("Message",1,"Title")     -This adds a cancel button to the first one.
text=msgbox ("Message",2,"Title")     -This has buttons "abort", "retry", and "ignore", and the beep.
text=msgbox ("Message",3,"Title")     -Has buttons "yes", "no", and "cancel".
text=msgbox ("Message",4,"Title")     -Just the yes/no
text=msgbox ("Message",5,"Title")     -Retry/cancel
6 through 15 are exactly the same as 0
text=msgbox ("Message",16,"Title")     -This is the angry beep error message version of 0.
text=msgbox ("Message",17,"Title")     -16 with cancel button
text=msgbox ("Message",18,"Title")     -16 with abort/retry/ignore
Starting to detect a trend here?  It continues on like that.
text=msgbox ("Message",48,"Title")     -Different beep, and a yellow caution sign, with ok button.
Continues normal pattern from there.
At 64 we get a different beep and a question mark icon.

I know this is very boring, so I'll cut short here.
To run this, first save it as whatever.vbs  - make sure to select all file types, and not text files.
Then, just double click the vbs icon where you saved it.

Of course, you can change the message and the title to whatever you want.

Lastly, you can create loops in vbs like so:

do
msgbox "Hi"
loop

This is an infinite loop, but you can stop it with task manager.  Just go to processes and end the wscript.exe process.

Next 1 2

About Us | Site Map | Privacy Policy | Contact Us | ©2014

omarwebdesign.netau.net


Free Web Hosting