PlaySoundFile method

[method icon] PlaySoundFile(szSound$)

>PlaySoundFile

PlaySoundFile

The PlaySoundFile(name) method plays a Windows .wav audio file in the client. The sound file should first be copied to the client's cache using COPY OBJECT. If the sound cannot be played the default system event sound is used instead.

REM Copy wav file into KClient cache
COPY OBJECT "/mysounds/alert.wav" TO "alert.wav"
REM play the file
Client.PlaySoundFile("alert.wav")
See also:

BrandSplash, CameraCapture, ClearDirectoryWatchEvent, CreateBookMark, DisplayScreen, EmptyClientCache, EnableUserPreferences, EnableWarnings, FireServiceEvent, ForceDefaultFont, ForceReadableTextMode, FTPGet, FTPPut, GetForms, GetServiceAttribute, GetServiceCookie, GetSpecialFolderPath, HTTPGet, OpenServiceWindow, SetCharacterEncoding, SetDefaultIMEMode, SetDirectoryWatchEvent, SetPrinterFontName, SetPrinterFontSize, SetPrinterPort, SetServiceAttribute, SetServiceCaption, SetServiceConnection, SetServiceCookie, SetServiceUrl, SetThrottle, ShowSIP