Display a pop-up Dialog Box

  • Thread starter Thread starter Alan Tang
  • Start date Start date
A

Alan Tang

Hello:

Would you mind to tell me ho can I display a pop-up dialog Box?

Does need VB Script?

Thanks!
 
-----Original Message-----
You can download it and his other utilities here:

Thanks for your utility. Does any tools that can display
the dialog and will not display the dos prompt. It was
because I will add to scheduler. When the schedule is
start, it will display the mtask!

Thanks!
 
Thanks for your utility. Does any tools that can display
the dialog and will not display the dos prompt. It was
because I will add to scheduler. When the schedule is
start, it will display the mtask!

Thanks!
Hi

You can hide the command prompt if you run PopUp.exe from
a VBScript:

'--------------------8<----------------------
' PopUp.exe is available at
' http://gearbox.maem.umr.edu/batch/f_w_util/Frank_Westlake-Freeware.html
sPopCmd = "F:\tools\FrankWestlake\PopUp.exe"
Set oShell = CreateObject("WScript.Shell")
oShell.Run sPopCmd & " /OK /T ""My title"" /M ""My message""", 0, False
oShell.Run sPopCmd & " /OK /T ""My title"" /M ""My message2""", 0, False
'--------------------8<----------------------
 
Hello:

Thanks for your information. I have try and it can Min. the windows
but due to I have many dialog in windows. It also cause many Min windows
in the task bar. It is possible to using another program or VB script
that can display only one windows?

Thanks!
 
Hi

You can hide the command prompt if you run PopUp.exe from
a VBScript:

'--------------------8<----------------------
' PopUp.exe is available at
' http://gearbox.maem.umr.edu/batch/f_w_util/Frank_Westlake-Freeware.html
sPopCmd = "F:\tools\FrankWestlake\PopUp.exe"
Set oShell = CreateObject("WScript.Shell")
oShell.Run sPopCmd & " /OK /T ""My title"" /M ""My message""", 0, False
oShell.Run sPopCmd & " /OK /T ""My title"" /M ""My message2""", 0, False
'--------------------8<----------------------

I would have thought that once you start using VBS, a PopUp command line
tool like Frank's becomes obsolete, given that methods like MsgBox or
PopUp are available within VBS.
 
Michael said:
I would have thought that once you start using VBS, a PopUp command line
tool like Frank's becomes obsolete, given that methods like MsgBox or
PopUp are available within VBS.
Hi

Not in all cases. MsgBox will halt your VBScript to someone press
the OK button, and the same goes for PopUp without a timeout.

If you want a message box on the screen that doesn't halt your script
and that is visible until the user press OK, there is nothing builtin
in VBScript for this (unless you launch secondary "helper" scripts).
 
Back
Top