Sample scripts

From MediaMonkey Wiki
Revision as of 13:35, 10 April 2007 by Jiri (talk | contribs) (Added Sample AMG Search script)
Jump to navigation Jump to search

Sample Simple Tree Node script

This script adds a new sub-node to Now Playing node. All tracks from Now Playing are present in the new node, but they are in reversed order.

Sample Lyricist Tree Node script

This script adds new Lyricist node that contains all lyricists in Library as its subnodes. The script further allows to edit individual lyricist or drag&drop tracks to lyricist nodes.

Sample New Window - Report script

This script shows how to add new UI elements to MM. It adds several menu items and a toolbar item that all show a new dialog with a very simple statistics.

Sample Option Sheets script

This script adds three basic sheets to Options dialog. It shows how to add sheets there, how to put controls to the sheets and how to manage data entered in the controls.

Sample Event Handlers script

This script shows how to use COM events in MediaMonkey scripting. You can associate event with a VB procedure and cancel the association later.

Sample Events for User Interface script

This scripts shows how event support can be used to create dialogs that better react to user actions. Not that the button there is enabled only if checkbox is checked, etc.

Sample Dockable panels script

This script shows how you can create new panels on the main window, put any content in them, react to currently selected and played tracks, etc. The panel even persists its position after restart of MediaMonkey.

Sample AMG Search script

This script demonstrates how to plug-in into MediaMonkey Web Search dialog. It searches AMG web a lets user tag some basic fields.