Home Features Toolbar Library Forum Download Support Tutorial Manual
3. Reference
Triggers
Controls
Variables
System Variables
Global Values
Functions
AutoFill()
Back()
Beep()
CheckLinks()
Checksum()
Click()
Command()
Customize()
DeleteOption()
Enable()
Execute()
ExportLinks()
Forward()
GetFolderIcon()
GetQuery()
GetSystemIcon()
Header()
Highlight()
HistoryMenu()
Home()
IfExactMatch()
IfMatch()
ImportValue()
ImportCaption()
ImportIntValue()
ImportXMLValue()
Length()
LoadMenu()
Menu()
OpenURL()
Options()
PageText()
PlaySound()
PopupManager()
Refresh()
Replace()
ReplaceAll()
Resize()
ResizeClient()
Redraw()
Save()
Search()
SearchBack()
SearchLast()
SearchNext()
SearchPage()
SetCaption()
SetClipboard()
SetFocus()
SetFontSize()
SetIcon()
SetOption()
SetParam()
SetText()
SetStatusText()
SetTooltip()
SetUserAgent()
SetValue()
Show()
Stop()
StripHTML()
ToolbarMenu()
TruncateOption()
UpdateToolbar()
Zoom()
Text Functions
  

PlaySound() Function

The PlaySound function plays a specified .wav sound file.


Syntax:

    PlaySound(url)


Parameters:

    url - Filename or the URL of a WAV format file to play.


Remarks:

    • The function is asynchronous. It returns control to the browser while the sound is played in the background.
    • Only one sound can be played at a time.
    • The function only supports WAV format files. You can use a HTML control to play MP3, WMA and other multimedia files supported by the browser.


Example:


    <xml id="toolbar">
    <toolbar caption="PlaySound() Example">
    <button caption="Play" action="PlaySound('http://www.toolbarbrowser.com/start.wav')"></button>
    </control>
    </toolbar>
    </xml>



Compatibility:

    Requires Toolbar Browser v2.00.002 or higher.


See Also:

    Beep() Function



Website Popularity Rank | Build Your Own Toolbar | Free Download | Custom Toolbars | Features | Contact Us

ToolbarBrowser is a freeware project supported by Trellian Limited. | Privacy Policy