English

How To: Run sound files through Avenue

Summary

This script will allow you to run sound files through Avenue.

Procedure

Edit this script to include the pathname of your sound file.

Code:
'Running Sound Files
'TheSnd represents the directory
'structure ringin.wav file.

theSnd = "c:\Winnt\Media\ringin.wav"
if (File.Exists(theSnd.AsFileName)) then
soundArg = theSnd.AsFileName
System.Playsound(soundArg, TRUE)
else
MsgBox.Warning("File "+theSnd+" not found.", "Warning")
end