Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Raising hell

Status
Not open for further replies.

bowwow

IS-IT--Management
Jun 11, 2002
60
GB
Or a little noise at least.... does anyone know how to generate a noise using a script? I need a script to a get an Admins attention whenever we have a particular issue on a console. There are better ways in my opinion but in this case I have no say. Any help much appreciated.

Script will be run on Computer A but must generate the noise\sound alert on Computer B (wav. file will be present on both computers).
 
Not sure if these wil work in VB Script but it works in VBA.

Set vo = CreateObject("SAPI.SpVoice")
vo.Speak "Hello"

or

Dim song As Object
Set song = CreateObject("MediaPlayer.MediaPlayer")
song.Open "C:\announcement.wav
 
The first example will work in VBScript I know.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top