thatonepuggo

Untitled

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