SDBApplication

From MediaMonkey Wiki
Jump to navigation Jump to search

CoClass SDBApplication

This is the main MediaMonkey scripting object that you initially have accessible as global SDB variable in your scripts launched from MediaMonkey. All your communication with MediaMonkey should start here, you can get references to other objects from properties of this object.

Object is exposed to ActiveX under name SongsDB.SDBApplication.

Plugins can get to object using exported DLL Procedure:

C++: extern "C" __declspec(dllexport) void MMSetInterfaceCookie(DWORD cookie)

Delphi: procedure MMSetInterfaceCookie( MMInterfCookie : cardinal); cdecl;


Another global variable also accessibl in scripts is Script, pointing to SDBScriptControl object.

See also this page which presents the below information organized in a more functional way.

ISDBApplication members

Name Type Description Supported in MM5?
AllVisibleSongList Property Get No
ApplicationPath Property Get Yes
EqualizerPath Property Get From 3.1 beta 1 Yes
IconsPath Property Get From 3.1 beta 1 Yes
PluginsPath Property Get From 3.1 beta 1 Yes
CurrentAddonInstallRoot Property Get From 4.0 Yes
ScriptsPath Property Get From 3.1 beta 1 Yes
SkinsPath Property Get From 3.1 beta 1 Yes
CommonDialog Property Get No
CreateTimer Method
CurrentSongList Property Get No
CursorType Property Get/Let
Database Property Get Yes
Device Property Get No
Format Method Yes
IniFile Property Get No
IsKnownFiletype Method From 3.0 Partial
IsRunning Property Get Yes
InPartyMode Property Get From 4.1 Partial
RunningAsService Property Get From 4.1 Yes
Localize Method Partial
LocalizedFormat Method Partial
LocalizeGen Method Partial
MainTracksWindow Property Get No
MainTree Property Get Yes
MessageBox Method Partial
MyMusicPath Property Get Yes
NewSongData Property Get Yes
NewSongList Property Get Yes
NewStringList Property Get From 3.0 Yes
Objects Property Get/Let
Player Property Get
PlaylistByTitle Property Get
PlaylistByID Property Get From 4.0
ProcessMessages Method
Progress Property Get
RefreshScriptItems Method From 3.0
RegisterIcon Method
RegisterIconHandle Method
Registry Property Get
SelectedSongList Property Get
SelectFolder Method
ShutdownAfterDisconnect Property Get/Let
TemporaryFolder Property Get
toASCII Method
Tools Property Get
UI Property Get
VersionBuild Property Get
VersionHi Property Get
VersionLo Property Get
VersionRelease Property Get
VersionString Property Get
ComServerUIActive Property Get/Let
WebControl Property Get
Downloader Property Get From 4.0
Collections Property Get From 4.0
VisibleCollectionsCount Property Get From 4.0
VisibleCollectionID Property Get From 4.0


ISDBApplicationEvents members

Name Type Description
OnBeforeTracksMove Event
OnChangedSelection Event
OnCompletePlaybackEnd Event From 4.0
OnDownloadFinished Event From 4.0
OnFilterChange Event From 3.1
OnIdle Event From 3.1
OnNowPlayingModified Event From 3.1
OnNowPlayingSelectionChanged Event From 3.1
OnOptionsChange Event From 3.1
OnPause Event
OnPlay Event
OnPlaybackEnd Event From 3.1
OnRepeatClicked Event From 3.1
OnSeek Event
OnShuffleClicked Event From 3.1
OnShutdown Event
OnStop Event
OnTrackAdded Event
OnTrackConverted Event
OnTrackDeleting Event From 3.1
OnTrackDoubleClick Event
OnTrackEnd Event From 3.1
OnTrackListFilled Event From 3.1
OnTrackListFilling Event From 3.1
OnTrackListModified Event From 4.0
OnTrackListSelectionChanged Event From 3.1
OnTrackProperties Event
OnTrackSkipped Event From 4.0
OnPartyModeEnabled Event From 4.1
OnDeviceSyncStarted Event From 4.1
OnDeviceSyncCompleted Event From 4.1
OnPlaylistAdded Event From 4.1
OnPlaylistRemoved Event From 4.1
OnPlaylistChanged Event From 4.1
OnDeviceFileCopied Event From 4.1.1