Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 0 - ok button only
- 1 - ok and cancel
- 2 - abort, retry and ignore
- 3 - yes no and cancel
- 4 - yes and no
- 5 - retry and cancel
- TO CHANGE THE SYMBOL (RIGHT NUMBER)
- 16 - critical message icon
- 32 - warning icon
- 48 - warning message
- 64 - info message
- DEFAULT BUTTON
- 0 = vbDefaultButton1 - First button is default
- 256 = vbDefaultButton2 - Second button is default
- 512 = vbDefaultButton3 - Third button is default
- 768 = vbDefaultButton4 - Fourth button is default
- SYSTEM MODAL
- 4096 = System modal, alert will be on top of all applications
- x=msgbox("Hello World", 0+16+0+4096)
- --
- variable=inputbox ("Message","Title","Default Text")
- --
- if 200 > 16 then
- x=msgbox ("200 is greater than 16")
- else
- x=msgbox ("200 isn't greater than 16")
- end if
- --
- Set Sapi = Wscript.CreateObject("SAPI.SpVoice")
- Sapi.speak "Hello world"
Add Comment
Please, Sign In to add comment