Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 12-01-2005, 12:54 AM   #1
BSOD
 
Computergen's Avatar
 
Join Date: Dec 2004
Posts: 3,175
Default msgbox "blah"

Yeah so I'm looking for help coding vb in notepad, the sites I can't understand because I'm horrible at coding. Basically I know

msgbox "Enter text here to prompt"

I want to know how to make a title and add more button options and please don't give me links or tell me to get vb, I would prefer help from an experienced user who can help with notepad.
__________________

Computergen is offline   Reply With Quote
Old 12-01-2005, 06:20 AM   #2
Fully Optimized
 
UK31337's Avatar
 
Join Date: Feb 2005
Posts: 2,776
Default Re: msgbox "blah"

This might help:

http://www.programmershelp.co.uk/vbmessageboxes.php
__________________

__________________
Master of common sense. If you don't like it, stop reading.
UK31337 is offline   Reply With Quote
Old 12-01-2005, 03:30 PM   #3
BSOD
 
Computergen's Avatar
 
Join Date: Dec 2004
Posts: 3,175
Default Re: msgbox "blah"

Quote:
please don't give me links
did you even read my post?

edit - haha nevermind that link actually helped alot opposed to others.
Computergen is offline   Reply With Quote
Old 12-01-2005, 09:05 PM   #4
BSOD
 
Computergen's Avatar
 
Join Date: Dec 2004
Posts: 3,175
Default Re: msgbox "blah"

Ok so far I have the following:

intReply = MsgBox ("Your system has encountered a critical error, Windows will continue to shut down your system." , vbCritical + vbOKOnly ,"System Failure" )

And I want to follow up, so far this is the image that appears when you click the .vbs file



Basically I want to learn how to make hitting the OK button follow up to do something such as open a program or even restart the computer.

I also want to make it so when you go to the file on a sites directory such as say the files name was Dan.vbs and when you go to the site/Dan.vbs instead of showing the text actually execute the pop up. Can anyone help?
Computergen is offline   Reply With Quote
Old 12-02-2005, 04:59 AM   #5
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 7,999
Default Re: msgbox "blah"

Quote:
Originally Posted by Computergen
did you even read my post?

edit - haha nevermind that link actually helped alot opposed to others.
Did you ever think that he gave you the link because it gave you everything you needed to know?

Quote:
You should always assign a MsgBox() function to an integer variable ,this is used to store the return value. Message boxes can display multiple buttons, such as Yes, No, and Cancel. The return value will indicate which button the user clicked. Here is an example
You can see what button was pressed by looking at the integer value returned from the message box....

and example is like this...
Code:
intReply = MsgBox ("Do you want to quit" , vbQuestion + vbYesNoCancel ,"Log-off" )
msgbox intreply

'ok -6
'no - 7
'cancel - 2

if intreply=6 then 
msgbox "you pressed OK!"
WScript.Quit 
end if
msgbox "so you don't want to quit? thats a shame because the program ends here"
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 12-02-2005, 10:01 AM   #6
BSOD
 
Computergen's Avatar
 
Join Date: Dec 2004
Posts: 3,175
Default Re: msgbox "blah"

That works but how do I make it so it doesnt show those numbers after choosing?
Computergen is offline   Reply With Quote
Old 12-02-2005, 10:21 AM   #7
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 7,999
Default Re: msgbox "blah"

take out the line that makes it show them?

msgbox intreply
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 01-17-2006, 10:22 AM   #8
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Talking Re: msgbox "blah"

Computergen PLEASE tell me where you got that skin from (I think its a skin) I have been looking EVERYWHERE for it, it ROCKS!
__________________

j03 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 03:28 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0