Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3    Statistic    FMM    Blog  

App.PlaySystemSound

Plays a system sound with given name.

Component Version macOS Windows Linux Server iOS SDK
App 11.3 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "App.PlaySystemSound"; Name )   More

Parameters

Parameter Description Example
Name The name to play. "Submarine"

Result

Returns OK or error.

Description

Plays a system sound with given name.
Sound plays asynchronous.

For macOS, you can go to /System/Library/Sounds folder and look for the sound names.
For Windows look into registry at HKEY_CURRENT_USER\AppEvents\EventLabels section.

Examples

Play sound on macOS:

MBS( "App.PlaySystemSound"; "Submarine" )

Play sound on Windows:

MBS( "App.PlaySystemSound"; "DeviceConnect" )

Release notes

  • Version 11.3
    • Added App.PlaySystemSound function.

Blog Entries

Created 2nd June 2021, last changed 3th June 2021


App.OpenFile - App.ProcessID

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins

Start Chat