Scripting Resources

From MMWiki

Revision as of 16:00, 20 March 2008; view current revision
←Older revision | Newer revision→
Jump to: navigation, 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.


Contents

Icons

Menu & Toolbar Icons Tree Icons
MenuToolbar1.gif MenuToolbar2.gif MenuToolbar3.gif MenuToolbar4.gif MenuToolbar5.gif MenuToolbar6.gif MenuToolbar7.gif MenuToolbar8.gif Tree1.gif Tree2.gif Tree3.gif Tree4.gif Tree5.gif 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
0OtherNot specified
132x32 pixels 'file icon' (PNG only)Not specified
2Other file iconNot specified
3Cover (front)Cover (front)
4Cover (back)Cover (back)
5Leaflet pageLeaflet Page
6Media (e.g. label side of CD)Media Label
7Lead artist/lead performer/soloistLead Artist
8Artist/performerArtist
9ConductorConductor
10Band/OrchestraBand
11ComposerComposer
12Lyricist/text writerLyricist
13Recording LocationRecording Location
14During recordingDuring Recording
15During performanceDuring Performance
16Movie/video screen captureVideo Screen Capture
17A bright coloured fishNot specified
18IllustrationIllustration
19Band/artist logotypeBand Logotype
20Publisher/Studio logotypePublisher 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


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)

Personal tools