HOW TO

Run sound files through Avenue

Last Published: April 25, 2020

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

Article ID:000002352

Software:
  • Legacy Products

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options