Encapsulates the AutoMate™ action in the “General” group, “Play A Sound.” The method plays the wav sound specified by the filename.
Declaration
function PlaySound (varSoundToPlay As Variant,
intWaitUntilFinished As Integer) As Integer
Parameters
varSoundToPlay
The full path to the sound to be played.
intWaitUntilFinished
Specifies whether or not the method should return before the sound is finished playing. If intWaitUntilFinished is “1”, the method returns after the sound is finished playing. Otherwise, the method returns immediately.
Description
The PlaySound method will play the sound pointed to by varSoundToPlay. Use the StopSound method to stop a playing sound.