PlaySound Method

Plays a sound file or a pre-defined Windows sound.

System.PlaySound(Sound[, WaveFile][, Wait])

Client support

   Newlook Smartclient only.

Arguments

Sound - (Integer, Required)

A constant specifying the type of sound to play . Specify one of the pre-defined Sound constants.

Specify nlSndWavefile if you want to play a specific .wav file.

WaveFile - (String, Optional)

Optional.  String value specifying the full path name of the wave sound file to play. This parameter is ignored if the Sound argument is not set to SndWaveFile.

Wait - (Boolean, Optional)

Determines whether the script should wait until the sound has finished playing before continuing.  This parameter is ignored if the Sound argument is not set to SndWaveFile.

Returns

No return value.

Applies To

System object

See Also

PlaySound action


© 2004-2021 looksoftware. All rights reserved.