Oddworld Forums

Oddworld Forums (http://www.oddworldforums.net/index.php)
-   Off-Topic Discussion (http://www.oddworldforums.net/forumdisplay.php?f=9)
-   -   Create your own Windows error messages! (http://www.oddworldforums.net/showthread.php?t=16330)

Paul 12-21-2007 09:32 AM

the same as running a command from cmd.exe/batch file

abe is now! 12-21-2007 10:59 AM

Can I make an error with a function, for example to choose "yes or not" after a request?

Hobo 12-21-2007 12:51 PM

What would you want each option to do?

Strike Witch 12-21-2007 07:11 PM

Well, I'd want them to protect my Vic Viper.

ParamiteSurprise 12-22-2007 01:30 PM

:

()
Can I make an error with a function, for example to choose "yes or not" after a request?


if ( msgbox( "sure you would like to exit?", vbyesno ) = vbyes ) then
end
else
form1.visible = true

I just love Microsoft Visual Basic :happy: - - My dad taught me it

Fuzzle King 12-30-2007 10:45 AM

this is brilliant.i love it!

abe is now! 01-02-2008 07:51 AM

:

()
if ( msgbox( "sure you would like to exit?", vbyesno ) = vbyes ) then
end
else
form1.visible = true

I just love Microsoft Visual Basic :happy: - - My dad taught me it

It doesn't work. I created an error with this but it does not work, it is identical to the first one with more informations about the problem.

moxco 01-02-2008 11:18 AM

Is it possible to custimose the "OK" to an other word.

Paul 01-02-2008 08:01 PM

:

()
It doesn't work. I created an error with this but it does not work, it is identical to the first one with more informations about the problem.

cause vb6 and vbs are not the same thing, the form1.should would cause a run time error cause there are no forms in vbs, try

if msgbox( "Pick one", vbyesno ) = vbyes then
msgbox "You selected yes"
else
msgbox "You selected no"
end if

edit: To change the OK button you'd need visual basic6 to create a custom "form"

abe is now! 01-03-2008 04:23 AM

So, I can't do it without a program. It doesn't work in this way. But isn't the problem another? Must I add to the name when I save .vbs or other words?

Paul 01-03-2008 08:42 PM

just whack it into notepad and save it as whatever.vbs, make sure the type of files is "all files"

abe is now! 01-04-2008 09:40 AM

Thank you. But it does not work. Must I use notepad or other programs?

Paul 01-04-2008 11:52 AM

*any* text editor, what happens when you open the vbs? Prob don't got scripting enabled

ParamiteSurprise 01-04-2008 12:06 PM

Vb is so powerful you could just program a malicous script :O

Even worse with DOS - With dos you can program a nasty script... Delete system32.. :(

abe is now! 01-05-2008 08:12 AM

:

()
*any* text editor, what happens when you open the vbs? Prob don't got scripting enabled

When I open it, it's like the first kind of error. And I can't chose "yes" or "no".

ParamiteSurprise 01-07-2008 08:14 AM

List
 
Heres a nice list ;)

[Instead of typing 16, type this]

Vbcritical - Cross
Vbinformation - Information
Vbexclamation - Exclamation mark
vbquestion - Question bubble
vbabortretryignore - Abort, Retry and ignore
vbokcancel - Ok and cancel
vbokonly - Ok only
vbyesno - Yes, No
vbyesnocancel - Yes, No and cancel
vbretrycancel - Retry and cancel
vbmsgboxhelpbutton - help button included
vbmsgboxright - Shifted to right

and the rest are vbdefaultbutton1, vbdefaultbutton2, etc

Have fun!:D

Paul 01-07-2008 11:18 AM

:

()
Vb is so powerful you could just program a malicous script :O

Even worse with DOS - With dos you can program a nasty script... Delete system32.. :(

yes thats why most people dont have the vb6 runtimes installed so no vb apps run at all.. and why you should turn scripting off

and you can't delete system32 on windows nt+ because there is no deltree anymore, you could do del *.* but windows file protection will replace the files as they're being deleted, and the really really important files are always in use anyway

of course you could just delete the stuff from the root of C: (if you wanna delete a file with vb the function is "kill "C:/somefile.ext", carful though ;)

scrab queen 01-07-2008 03:20 PM

Oh, man, this is some really funny stuff. I was such a nerd, I couldn't help but to set up this error for my dad:

lol = msgbox("HOW ARE YOU NERD?! ALL YOUR MEMEORY ARE BELONG TO US! YOUR HARD DRIVE IS ON THE WAY TO DESTRUCTION! YOU HAVE NO CHANCE TO REBOOT MAKE YOUR TIME!! hahahah!",16,"Error")


Also:

lol = msgbox("OMG! She's pregnant with a retarded alien, most likely to kill you when it's older baby that will use it's fecal matter as blunt projectiles! What will you do?!",vbabortretryignore,"Error")

I just couldn't help myself!!

E'l Scrabino 01-07-2008 03:39 PM

It doesn't work for me. I type in the stuff but when i re-open it, it just shows the text i put in. No error message for me :(

scrab queen 01-07-2008 04:02 PM

How about a clearer version?:

Open up the 'Notepad' program, and copy this into it:

lol = msgbox(" insert text",16,"Error")


Where it says 'insert text' is where you put your message.
Then save it under any title you want, but be sure to put '.vbs' after it.
When it's saved, double click on the file's icon (It should look like a blue unraveled piece of paper, like a scroll), and then it should pop up.

skillyaslig 01-07-2008 05:56 PM

bwhaha, it worked! Man, I sux, but I still worked XD Haha, thats weird

E'l Scrabino 01-07-2008 06:57 PM

:

()
How about a clearer version?:

Open up the 'Notepad' program, and copy this into it:

lol = msgbox(" insert text",16,"Error")


Where it says 'insert text' is where you put your message.
Then save it under any title you want, but be sure to put '.vbs' after it.
When it's saved, double click on the file's icon (It should look like a blue unraveled piece of paper, like a scroll), and then it should pop up.

That's what i've been doing. Nothing pops up.

Paul 01-08-2008 10:47 AM

:

()
That's what i've been doing. Nothing pops up.

Tsk tsk, you're saving it as blah.vbs.txt not blah.vbs

ParamiteSurprise 01-10-2008 07:36 AM

Lol, even the guy that started this thread said to save it as VBS -___-

Paul 01-10-2008 10:09 AM

yeah but people dont pay attention until its been said 99999999 times

Rupture Farms 01-31-2008 09:28 PM

http://i231.photobucket.com/albums/e...sSuicide-1.jpg
http://i231.photobucket.com/albums/e...1000/112-1.jpg

ParamiteSurprise 02-02-2008 03:28 PM

newsise
 
8888



8889



I've done this not with VB6 but with VB6 instead (more abilities)

Fuzzle Guy 02-04-2008 01:50 PM

Some of these are brilliant!

ParamiteSurprise 02-07-2008 01:16 PM

Vista msgbox l(
 
8915


Mehehe....

but vbs isn't all about crummy messageboxes, theres alot more to it, to get my VB info, i got Visual Basic 6 For dummies - Cause im a dummy :p