Remove these ads by
Signing UpStep 1: Open up notepad
x=msgbox ("yourtexthere" ,0, "yourtitlehere")
Replace 'yourtexthere' with the words you want in your message box and replace 'yourtitlehere' with the title you want on your message box (for example x=msgbox ("Do you want to learn how to make this message box?" ,4, "Instructables").








































Visit Our Store »
Go Pro Today »




x=msgbox("You Have A Virus",0,"Virus")
Theres also another way follow ok
lol=msgbox("Message",0,"Title")
Oh, I get the 'system modal', example of it is like in Microsoft Office that you want to exit with unsave document and I tried to click some parts of the screen and it keeps beeping.
But I know how to make it more advanced(who can work with visual basic is in advantage):
First put on to the first line first (main) msessage box (that will decide what will happend next)
Then put this:
If x=vb* Then
x=messagebox("Second message box",any,"any")
End if
*Here you can put the name of the button that user was pressed (first letter must by big example: vbNo or vbIgnore...)
Here I create a cool example:
x=msgbox("Delete local disc D?",36,"Disc cleaner")
If x=vbNo Then
x=msgbox("Really no?",36,"Adjusting")
If x=vbNo then
x=msgbox("But you can't stop it.",64,"Status")
End if
End if
x=msgbox("Cleaning is starting.",64,"Disc cleaner")
And how it work's:
On start you have a "main" message saying: Delete local disc D?
On second line computer is checking what you was press and if it was No you see next message with question: Really no?
Then computer is again checking what you was press and if it was No you see message saing: But you can't stop it. and computer is going to last line
If it wasn't No then computer jump on the last line where is next message box saing: Cleaning is starting.
P.S. I think you can use this comment like next step :)
Type this:
If x = vbNo Then
*User press No
Else
***User doesn't press No - user press Yes or Ignore or OK or ...
End If
And if you want to react on more buttons (like when user can press Retry or Ignore or Abort) try this:
If x = vbRetry Then
*Retry
ElseIf x = vbIgnore Then
*Ignore
ElseIf x = vbAbort Then
*Abort
Else
*Not Retry, not Ignore, not Abort - something else
End if
For i=1 to *
**
Next
*number of times
**thing to do * times
here's the code:
set x=createobject("wscript.shell")
x.run "#"
#Target to your file example: "D:\test.bat" or "C:\test.vbs"
x=msgbox ("Warning, Windows has found a virus. Do you want to remove it?" ,4, "WARNING!")
x=msgbox ("Windows could not remove virus. Searching for another antivirus software." ,0, "WARNING!")
x=msgbox ("Windows has removed the virus. Virus deleted program 'Microsoft Word' before it was removed." ,0, "WARNING!")
and it does the little *bum* noise and flashes when you try to go to another window.