How to Install custom script

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: How to Install custom script

Re: How to Install custom script

by drakinite » Tue Oct 12, 2021 7:41 pm

There are a few different ways, but they all revolve around the structure of an MMIP (MediaMonkey Install Package), which is essentially a renamed zip file. All the info you'll need is on the wiki, but most important is this section: https://www.mediamonkey.com/wiki/Gettin ... _Structure

1. MediaMonkey has a special structure for allowing addons to append their code to an existing script via the _add suffix. So for example, if you have code specifically related to the TrackListView control (controls/trackListView.js), you'll put it in a file named trackListView_add.js within a "controls" subfolder. When MM loads, it'll append that code to trackListView.js and run it. If your code involves new actions, you'll need to define them in a file called actions_add.js (in the folder root).
2. If your code is relatively simple and doesn't involve any controls or actions, you can put it in a file named init.js in the folder root. MediaMonkey will automatically run addons' init.js if it exists.

For more references, take a look at addons within the SampleScripts folder in your MM install.

How to Install custom script

by MPG » Tue Oct 12, 2021 5:47 pm

Hi,
I have created a custom script that I want add to MM5. How do I do it?
I should mention that I have a single file with the extension of .js

Top