View Issue Details

IDProjectCategoryView StatusLast Update
0011469MMW v4Framework: Scripts/Extensionspublic2013-11-10 10:57
Reporterzvezdan Assigned To 
PrioritynoneSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0011469: Ability to create sub-menus for scripts of type 0 or 1 needed
DescriptionIt would be nice if you add a possibility to create sub-menus for scripts of type 0 and 1 (File \ Reports and Tools \ Scripts). Those menus could be cluttered and adding sub-menus could help in their better hierarchy.

For example, my "Add Currently Playing/Selected Track(s) to Playlist" script has a possibility to add new items to that menu dynamically by user because each related option has a different hotkey. For example, adding tracks to playlist 1 has a hotkey Shift+Alt+1, then adding tracks to the playlist 2 has hotkey Shift+Alt+2 and so on. Maybe some user of my script would add 20 items to that menu in that way, maybe even more. So, it would be nice if my script could add just one menu item to the Tools \ Scripts and one or more sub-items to it.

Another example is my RegExp Find and Replace script. That script has the Edit \ Tag Manipulation Preset menu with 200+ sub-menus for each of its presets. There are some users that requested that I put those presets to the Tools \ Scripts menu, which has some sense because items in that menu could have hotkeys easily modified using the program's Hotkey option in the Options dialog.

There are two possibility how you could implement my suggestion:

1. You could automatically create the main menu and its sub-menus for each script that has two or more sections in the Scripts.ini file with the same Filename key. For example, my "Add ... to Playlist" script has

[AddPlayingTrackToPlaylist]
Filename=Auto\AddTracksToPlaylist.vbs
Procname=AddPlayingTrackToPlaylist
DisplayName=Add Currently Playing Track to Playlist

[AddSelectedTrackToPlaylist]
Filename=Auto\AddTracksToPlaylist.vbs
Procname=AddSelectedTrackToPlaylist
DisplayName=Add Selected Track(s) to Playlist

1. a) so, you could create one main menu in the Scripts menu and two sub-menus. However, I am not sure what should be displayed as the caption of the main menu item. It cannot be the Filename because it is not properly named for displaying purposes. Maybe you could add one new optional key to the .ini section which would be used for that, lets call it MainDisplayName.

1. b) Maybe using such key we could group several menu items not only within single script, but we could group several related scripts. For example, I have two scripts of type 0 that could go into one sub-menu, "Restore/Synchronize Database" and "Update Location of Files in Database".

2. You could add a possibility to the Options dialog box for users to create sub-menus for scripts as they want, but that would require much more of your work.
TagsNo tags attached.
Fixed in build

Relationships

related to 0009073 new Option to specify Enabled, Visible and Active for items in the Scripts.ini file for type 0/1 scripts 

Activities

There are no notes attached to this issue.