Sample scripts

From MediaMonkey Wiki
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 ListBox script

This scripts shows how to easily use SDBUIListBox control for showing ordinary lists of strings.

Sample TreeList tree script

This scripts shows how to use SDBUITreeList control to show and control a tree of items.

Sample TreeList listview script

This scripts shows how to use SDBUITreeList control to show and control a grid-like list of items.

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 and lets user tag some basic fields.

Sample Internal Webbrowser script

This script shows how to use the internal webbrowser control to show a web page when a custom node is clicked.

Sample Read and Write Method(s)

This script demonstrates various methods for retrieving data, optional manipulation and updating.
Using the Property Description Table this script uses the same colour codes to highlight the appropriate substitution within the script.