Function Message Box

Microsoft Windows
Post Reply
User avatar
MigrationUser
Posts: 336
Joined: 2021-Jul-12, 1:37 pm
Been thanked: 2 times
Contact:

Function Message Box

Post by MigrationUser »

29 Jul 2011 10:43
scott_humphris


Im looking to get a message box similar to the yes/no function but it has an 'ON' button and an 'OFF' button.

can anyone help please?
Sorry i dont have much experience with message boxes.

Thanks

S

----------------------------

#2 01 Jul 2012 06:03
Dylany_1


Re: Function Message Box

I believe the script you have entered was invalid tongue
Lucky I can help you, a script I made about one year ago, was never posted.
What it does is, it helps you through creating a VBS script msgbox. Heres the download link, just uploaded now, hope you enjoy. Just open, input "1" press enter and follow the steps.
Download application name: VBS Maker by Dylan (iiNzTicTx)
Download size: 33KB
Download link: http://www.2shared.com/file/GARyIexi/VB ... icTx_.html
big_smile

----------------------------

#3 01 Jul 2012 23:22
Dylany_1


Or just insert this into notepad:

Code: Select all

x=msgbox("text",4,"title")
to add a notification icon here are the codes:
16 - circle red box with cross
32 - bubble with question mark
48 - warning icon
64 - bubble with !
Button codes:
0 - Ok button by itself
1 - Ok,cancel
2 - abort, retry, ignore
3 - Yes, no ,cancel
4 - Yes,no
5 - retry,cancel
the messagebox goes:

Code: Select all

x=msgbox("[text]",[icon+buttion],"title")
for a messagebox with the bubble question mark and Yes/No buttons:

Code: Select all

x=msgbox("mytext",36,"mytitle")
Note: You add the button code and the icon code together to one number.
big_smile

Last edited by Dylany_1 (01 Jul 2012 23:24)

original thread: https://ss64.org/oldforum/viewtopic.php?id=1297
Post Reply