This script places a new sub-menu in the pop-up menus you get when you right click on song(s) or nodes (Main Window, Track List, Now Playing & Menu_Pop_Tree) as well as a button in the toolbar. It reads through the Scripts.ini file and loads any script of type 0 into the menus. To use, right click on a song or multiple songs or click on a node or the toolbar button and find the new Scripts menu. Select one of the scripts from there. This is the same as if you chose the script from the Scripts menu under the Tools menu. Comments and suggestions for improvement are welcome.

Version 1.6 Update September 7, 2008 - Download the installer
-made lots of code changes based on MoDementia's suggestions (thanks!!!)
-streamlined code that processes the scripts.ini file
-added ability to set an icon in the Scripts.ini file, then show it from RCFS. You can set a path to the icon either relative to MM, an absolute path to the file, or a number to use one of MMs built in icons, e.g. any of these will work when included in Scripts.ini (see previous discussions in this thread) :

-For the button/menu maker form, in the Icon edit box, you can now put in <nn> where nn is a number for one of MMs built in icons. For example <22> will use the Monkey icon
-Cleaned up code for placing the separators (I think I got it, but these get tricky so let me know )
-Changed the way it records if one of the separator check-boxes are selected to account for a bug noted earlier with non-English implementations (http://www.mediamonkey.com/forum/viewto ... 50#p165371)
-Added "Clear All" button to the button/menu maker form
-Added button to the button/menu maker form for the first row to clear it also
-Added a new menu item to Refresh Menus. This will delete all the RCFS menus/buttons, then re-build everything, same as if MM was re-started. Because of this, the positions of RCFS menus/buttons relative to other menu items may change. When you restart, they're back where they belong. I'll look into enhancing this for future revisions.
-A few other enhancements to the code to hopefully run more efficiently

Version 1.51 Update August 30, 2008 - Download the installer
-fixed captions for checkboxes showing up in some skins (should have been no caption)
-fixed code to delete all buttons and separators before creating new ones rather than delete 1st, add 1st, delete 2nd, add 2nd, etc.
- a few other minor tweaks to code

Version 1.42 Update July 6, 2008 - Download the installer-Added code suggested by MoDementia to allow for use of auto-scripts. Users will need to manually add any auto scripts entries in scripts.ini if the original script author doesn't do it for you. You'll also need to figure out what procedure to call from the original script.
-Added code to see if my (new) RightClickForReports script is running, and if so, group the two sub-menus together in the same right-click section

Version 1.4 Update April 5, 2008Download the installer
-Fixed code to now add a snippet to other scripts to allow them to work off the right-click menus.
-Added code to hide the right-click menus if you uninstall from Tools/Extensions...

Version 1.2.3 Update March 17, 2008
-Added 'On Error Resume Next" throughout
-Added checking for missing script files and skips loading them
-Changed code that used Regexp to use Instr

Version 1.21 Update March 16, 2008
-Created an installer file
-Fixed a bug that errored the 2nd time some scripts were run off the right-click menu

Version 1.2 Update March 15, 2008
-Cleaned up the code to run more efficiently
-Added button to the toolbar
-Added logging capability (click the toolbar button to use)
-Added ability to automatically fix scripts that failed off the right-click menu. Those scripts are first backed up with a '.bak' extension, then modified to work with the right-click menu. If you re-install a script that needed modification, you may need to re-start MM to get it to work off the right-click menu.

Version 1.1a Updated Feb 25, 2008
-Added bubblesort to sort the scripts in my right-click menu
-Fixed a problem where some scripts weren't running correctly
-Added instructions to modify other scripts that still error

@Nyn - when does this error occur? line 9 is a comment so shouldn't cause any problems on loading.

@cadmanmeg - I saw that error on some of my scripts during testing. It looked like it was tied to the problem I had with getting the "script.include" part to work. Which script are you running when it gives this error?

onenonymous wrote:@Nyn - when does this error occur? line 9 is a comment so shouldn't cause any problems on loading.

@cadmanmeg - I saw that error on some of my scripts during testing. It looked like it was tied to the problem I had with getting the "script.include" part to work. Which script are you running when it gives this error?

That's what I was thinking but then I get this error right after, and it occurs as soon as I open MM.

nynaevelan wrote:That's what I was thinking but then I get this error right after, and it occurs as soon as I open MM.

hmm - I'm not sure what's going on - but have a thought. In my script I set "itm" and "subItm" to be my menu items. It might be that one of your scripts also has those set, so mine are stepping on it. Can you try this and see if it helps: search and replace all instances of itm to become popItm and subItm to become popSubItm. There are 8 instances of itm and 4 instances of subItm to replace. Save, re-start MM and see if that fixes it.

If this doesn't fix it, were there any other error messages before or after the one you showed?

Thanks for trying - I'm an amateur programmer just now getting into MM3 scripts, so may need one of the veterans to give me a hint.

One more thing to try - since it says the error is in line 9 - try deleting all the comments above the line with Option Explicit. I don't know why line 9 would be causing the problem though. If it still errors, let me know which line it now says causes the error.

Thanks for trying - I'm an amateur programmer just now getting into MM3 scripts, so may need one of the veterans to give me a hint.

One more thing to try - since it says the error is in line 9 - try deleting all the comments above the line with Option Explicit. I don't know why line 9 would be causing the problem though. If it still errors, let me know which line it now says causes the error.

I'm guessing there's a collision in two of your scripts. My script does a series of "script.include" commands, so likely that's the culprit. I've got 3 scripts that I use that have the line "Const mmListDropdown = 2" in them. I don't error though, so not sure why you do.

Looking in those scripts - it doesn't appear that this constant is used anywhere. Can you try commenting out the lines with "Const mmListDropdown = 2" that appear in other scripts? I found it in:
[C:\Program Files\MediaMonkey\Scripts\Auto\CaseModify.vbs] Line 102 : Const mmListDropdown = 2
[C:\Program Files\MediaMonkey\Scripts\Case.vbs] Line 84 : Const mmListDropdown = 2
[C:\Program Files\MediaMonkey\Scripts\Stats.vbs] Line 33 : Const mmListDropdown = 2
You of course may have it in other scripts that I don't have on my system, so there may be some sleuthing here. I don't know if this will break those scripts - but it didn't appear to on my system