Scripting Resources

From MediaMonkey Wiki
Jump to navigation Jump to search

Note: This page contains information for scripting on MM2. For MM3, you have take into account that the database has changed. Therefore, database drivers (MDAC and MS Jet) aren't needed anymore, and the database structure has changed (MediaMonkey Database structure). Also keep in mind that MM3 uses newer icons.


Icons

Menu & Toolbar Icons Tree Icons
http://home.scarlet.be/ruben.castelein/MM/ScriptingResources/Icons/MenuToolbar1.gif http://home.scarlet.be/ruben.castelein/MM/ScriptingResources/Icons/MenuToolbar2.gif http://home.scarlet.be/ruben.castelein/MM/ScriptingResources/Icons/MenuToolbar3.gif http://home.scarlet.be/ruben.castelein/MM/ScriptingResources/Icons/MenuToolbar4.gif http://home.scarlet.be/ruben.castelein/MM/ScriptingResources/Icons/MenuToolbar5.gif http://home.scarlet.be/ruben.castelein/MM/ScriptingResources/Icons/MenuToolbar6.gif http://home.scarlet.be/ruben.castelein/MM/ScriptingResources/Icons/MenuToolbar7.gif http://home.scarlet.be/ruben.castelein/MM/ScriptingResources/Icons/MenuToolbar8.gif http://home.scarlet.be/ruben.castelein/MM/ScriptingResources/Icons/Tree1.gif http://home.scarlet.be/ruben.castelein/MM/ScriptingResources/Icons/Tree2.gif http://home.scarlet.be/ruben.castelein/MM/ScriptingResources/Icons/Tree3.gif http://home.scarlet.be/ruben.castelein/MM/ScriptingResources/Icons/Tree4.gif http://home.scarlet.be/ruben.castelein/MM/ScriptingResources/Icons/Tree5.gif http://home.scarlet.be/ruben.castelein/MM/ScriptingResources/Icons/Tree6.gif


Yarin also made another chart of available icons.

Descriptions for the icon codes, and scripts to view all icons in Mediamonkey: Forum Thread


The icons can be downloaded here: Download Icons


Normally MediaMonkey uses its own internal icons. However, if you create an "Icons" subdirectory in MediaMonkey's program folder (usually "C:/Program Files/MediaMonkey", and place all MediaMonkey icons in it, it will use those. Those icons can then be modified like you wish. They can be up to 32 bit and support simple transparency. The first (top-left) pixel is taken as the transparent color. A restart of MediaMonkey is required for the icon changes to take effect.
An example of using custom icons can be found here.

In the same way as with the icons: if you place a file called "NoAArt.png" in the Icons subdirectory (which you may have to create first), it will replace MediaMonkey's default image in the Album Art panel when there's no album art found.

You can put a modified splash screen image in subdirectory "Brand" (which may have to be created first, in MediaMonkey's program folder). This image has to be named "Splash.png" (png image) or "Splash.jpg" (jpg image).


Tree and database structure

NodeType values for the Main Tree: can be used to recognise built-in tree nodes

Location of song properties in the database: information on MM's database structure


Cover Types

These are the cover type values used by MediaMonkey, as defined by the ID3v2.4 specification:

ID Official ID3 Description MediaMonkey Description
0 Other Not specified
1 32x32 pixels 'file icon' (PNG only) Not specified
2 Other file icon Not specified
3 Cover (front) Cover (front)
4 Cover (back) Cover (back)
5 Leaflet page Leaflet Page
6 Media (e.g. label side of CD) Media Label
7 Lead artist/lead performer/soloist Lead Artist
8 Artist/performer Artist
9 Conductor Conductor
10 Band/Orchestra Band
11 Composer Composer
12 Lyricist/text writer Lyricist
13 Recording Location Recording Location
14 During recording During Recording
15 During performance During Performance
16 Movie/video screen capture Video Screen Capture
17 A bright coloured fish Not specified
18 Illustration Illustration
19 Band/artist logotype Band Logotype
20 Publisher/Studio logotype Publisher Logotype


Internal Mask Fields

Internal User Friendly
%A <Artist>
%B <Bitrate>
%C <Composer>
%D <Auto Number>
%E <Extension>
%F <Filename>
%G <Genre>
%J <Custom 4>
%K <Custom 5>
%L <Album>
%M <BPM>
%N <Random>
%O <Path>
%P <Folder>
%Q <Playlist>
%R <Album Artist>
%S <Title>
%T <Track#>
%U <Custom 1>
%V <Custom 2>
%W <Custom 3>
%X <Skip>
%Y <Year>
%ZA <Mood>
%ZB <Occasion>
%ZC <Tempo>
%ZD <Comment>
%ZE <Encoder>
%ZF <ISRC>
%ZG <Lyricist>
%ZH <Original Artist>
%ZI <Original Lyricist>
%ZJ <Original Title>
%ZK <Publisher>
%ZL <Quality>
%ZM <Disc#>
%ZN <Music Composer>
%ZO <Grouping>
%ZP <Date>

Special examples

  • %2S represents <Title:2>
  • %-2S represents <Title:-2>
  • %@2S represents <Title@2>

Masks sections in MediaMonkey.ini

File Formats


Time savers

Trixmoto's Form Creator: Visit

Useful methods: Useful Methods


Engines and runtimes

What to do if scripting doesn't work (anymore): Macropool Scripting Troubleshooting


Windows Script 5.6

Microsoft Data Access Components (MDAC)

Microsoft .NET Framework


ActiveX controls

ActiveX Warnings: how to disable (or more recent here)

Handy ActiveX Controls: D2DSources


Microsoft Controls

  • Microsoft ADO Data Control 6.0 (OLEDB): download
  • Microsoft Chart Control 6.0 (OLEDB): download
  • Microsoft Comm Control 6.0: download
  • Microsoft Common Dialog Control 6.0: download
  • Microsoft Data Bound Grid Control 5.0 (SP3): download
  • Microsoft Data Bound List Controls 6.0: download
  • Microsoft DataGrid Control 6.0 (OLEDB): download
  • Microsoft DataList Controls 6.0 (OLEDB): download
  • Microsoft DataRepeater Control 6.0 (OLEDB): download
  • Microsoft FlexGrid Control 6.0: download
  • Microsoft Hierarchical FlexGrid Control 6.0 (OLEDB): download
  • Microsoft Internet Transfer Control 6.0: download
  • Microsoft MAPI Controls 6.0: download
  • Microsoft Masked Edit Control 6.0: download
  • Microsoft Multimedia Control 6.0: download
  • Microsoft PictureClip Control 6.0: download
  • Microsoft RemoteData Control 6.0: download
  • Microsoft Rich Textbox Control 6.0: download
  • Microsoft SysInfo Control 6.0: download
  • Microsoft Tabbed Dialog Control 6.0: download
  • Microsoft Windows Common Controls 5.0 (SP2): download
  • Microsoft Windows Common Controls-2 5.0 (SP2): download
  • Microsoft Windows Common Controls-2 5.0 (SP2): download
  • Microsoft Windows Common Controls 6.0 (SP6): download
  • Microsoft Windows Common Controls-2 6.0 (SP6): download
  • Microsoft Winsock Control 6.0: download


Microsoft Objects and Libraries

  • Microsoft Data Access Components: download
  • Microsoft Data Access Components: download
  • Microsoft Data Binding Collection Object: download
  • Microsoft Data Formatting Object Library: download
  • Microsoft Data Report Designer v6.0: download
  • Microsoft DHTML Page Run-time Library 1.0: download
  • Microsoft OLE Automation Library: download
  • Microsoft Remote Data Object 2.0: download
  • Microsoft Remote Automation Library: download
  • Microsoft Stock Property Page Object: download
  • Microsoft WebClass Library 1.0: download
  • Microsoft Visual Basic 6.0 Run-time Components: download
  • Microsoft Visual Basic 6.0 Virtual Machine: download
  • Microsoft XML Parser (MSXML) 3.0 Service Pack 7 (SP7): download


FM20.DLL must not be redistributed (more information). People who don't have the file can install Microsoft ActiveX Control Pad (or direct link)