Pop-up Windows Message...

S

Steven Sinclair

Is there any way, from a command prompt, to pop up a message in Windows that
will simply display a message, then disappear after a set period of time?
Thanx.
 
T

Terry R.

The date and time was Monday, June 29, 2009 11:27:01 AM, and on a whim,
Steven Sinclair pounded out on the keyboard:
Is there any way, from a command prompt, to pop up a message in Windows that
will simply display a message, then disappear after a set period of time?
Thanx.

Hi Steven,

Something like this?
http://3d2f.com/programs/4-192-msgbox-download.shtml

Doesn't say it works on XP, but if it works on w2k, chances are good.


Terry R.
 
S

Steven Sinclair

Also, I need a solution that does not require user interaction. I need to
simply display a message that will automatically time out and disappear.
Thanx again.
 
E

Elmo

Steven said:
Also, I need a solution that does not require user interaction. I need to
simply display a message that will automatically time out and disappear.
Thanx again.

You could write a script or batch file and add it to scheduled tasks..
You'd have it display a window, run a timer, then close afterwards, I
suspect. Try a VB group or a search on writing batch files.
 
T

Terry R.

The date and time was Monday, June 29, 2009 1:28:01 PM, and on a whim,
Steven Sinclair pounded out on the keyboard:
Also, I need a solution that does not require user interaction. I need to
simply display a message that will automatically time out and disappear.
Thanx again.

You weren't very specific so I just gave you what it sounded like you
wanted.

Then write a script to launch a program and a file you created to
display the message you want, then use the ping command to set an amount
of time to wait, then use taskkill to kill the process.


Terry R.
 
T

Tim Meddick

Steven,
Copy and paste the following into a text file using Notepad
and save or rename it with a .vbs extension.


(*Tip - to save a file as some other extension than .txt when using
'Notepad - in the 'Save as...' dialogue box, for the filename type :
"Myfile.vbs" - within quotes and it will then save as "Myfile.vbs"
and NOT "Myfile.vbs.txt" )


-------------------- copy between lines --------------------


strTitle="TITLE"

Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")

WSHShell.Popup "Display test message here!" , 3, strTitle


-------------------- copy between lines --------------------



Change "TITLE" to define your message window's title.

Change "Display test message here!" to define the text of your
message.

Change the number "3" to whatever number of seconds you want the
message displayed for before it is automatically dismissed.



Hope this helps you out.


==

Cheers, Tim Meddick, Peckham, London. :)
 
S

Steven Sinclair

Tim,

This solution is nearly perfect! Thank you. My last question would be how to
display this window without any "user-interaction" buttons?

Thanx again!!!
 
T

Tim Meddick

Sorry, I don't know how to display without *any* buttons.

The [ok] button is just there to dismiss the message box before the
timeout.

==

Cheers, Tim Meddick, Peckham, London. :)




Steven Sinclair said:
Tim,

This solution is nearly perfect! Thank you. My last question would be
how to
display this window without any "user-interaction" buttons?

Thanx again!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top