Guest User

Untitled

a guest
Jan 22nd, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Chr(13)
  2. Chr(10)
  3. vbLf
  4. vbCr
  5. vbCrLf
  6. vbNewLine
  7. "<br>"
  8.  
  9. Function mshta(ByVal MessageText As String, Optional ByVal Title As String, Optional ByVal PauseTimeSeconds As Integer)
  10. 'mshta.exe as an alternative for msgbox
  11.  
  12. '[...] some other stuff
  13.  
  14. Dim ConfigString As String
  15. Set WScriptShell = CreateObject("WScript.Shell")
  16.  
  17. ConfigString = "mshta.exe vbscript:close(CreateObject(""WScript.Shell"")." & "Popup(""" & MessageText & """," & PauseTimeSeconds & ",""" & Title & """))"
  18. WScriptShell.Run ConfigString
  19.  
  20. End Function
  21.  
  22. mshta "Hello<magic?>World"
  23.  
  24. Hello
  25. World
Add Comment
Please, Sign In to add comment