Beep before popup message 
Author Message
 Beep before popup message

Walter Zackery posted a nice solution last Wednesday:

Dim Shell,WaveFile
WaveFile = "c:\windows\media\ding.wav"
Set Shell = CreateObject("Wscript.Shell")
Shell.Run "sndrec32 /play /close """ & WaveFile & """",0,True

Quote:

> Beep before popup messageHi!
> Is there anything like
> Wscript.Beep
> How do you beep before bringing up a popup message screen
> in WSH.

> pls. discuss..



Mon, 16 Sep 2002 03:00:00 GMT  
 Beep before popup message

Beep before popup messageFYI: Have a look at WSHExtend.ocx in the WSH Bazaar. This
ActiveX control provides the WSHBeep method.

G. Born

Check out the WSH Bazaar at:

www.borncity.de


  Hi!
  Is there anything like
  Wscript.Beep
  How do you beep before bringing up a popup message screen
  in WSH.

  pls. discuss..



Tue, 17 Sep 2002 03:00:00 GMT  
 Beep before popup message

Beep before popup messageNot to take anything away from Gunter's control :), an alternative is the Popup method in WSH. The Icon Property that you set can invoke some of your default sounds depending on what you have set for your sound events. Gunter's control will actually beep your PC Speaker (I believe), not through your sound card, which means you do not have to have a Sound card or a sound event configured which may be desirable, but on the other hand you get volume with their sound card :).

For example:

Dim oWSHShell
Dim intButton

Set oWSHShell = Wscript.CreateObject("Wscript.Shell")
intButton = oWshShell.Popup("This is a message to your user", 0, "My Message Title", 16)

This will invoke a message with an OK button and a Critical Sop Icon and it's associated sound event. The 16 is the NatType which sets the Icon type of which you can find info in the WSH documentation and further you can steal even more NatType's from the MessageBox function in VB (The doc's for VB cover this), I haven't found any that don't work from the VB Docs.....

Shawn


  FYI: Have a look at WSHExtend.ocx in the WSH Bazaar. This
  ActiveX control provides the WSHBeep method.

  G. Born

  Check out the WSH Bazaar at:

  www.borncity.de


    Hi!
    Is there anything like
    Wscript.Beep
    How do you beep before bringing up a popup message screen
    in WSH.

    pls. discuss..



Tue, 17 Sep 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. My beep wont beep

2. HOW: popup message when mouse over a text link

3. Help with PopUp message on MouseOver

4. Alert Message popup over all open applications

5. Popup Message Box

6. Message Popup while a line of code is executing

7. Popup Messages

8. Popup Logon Message

9. Sending a popup message to a PC on the network

10. reference to popup from popup

11. popup from a popup

12. Avoid "beep" with Popup?

 

 
Powered by phpBB® Forum Software