View Issue Details

IDProjectCategoryView StatusLast Update
0009073MMW v4Framework: Scripts/Extensionspublic2012-02-02 17:41
Reporterzvezdan Assigned To 
PrioritynoneSeverityfeatureReproducibilityalways
Status newResolutionopen 
Summary0009073: Option to specify Enabled, Visible and Active for items in the Scripts.ini file for type 0/1 scripts
DescriptionThere are some situations when some item from the Tools|Scripts menu should be disabled/hidden like any other menu item created by scripts in other menus, e.g. File or Edit. For example, I have a script with two entries in the Scripts menu: "Add Currently Playing Track to Playlist" and "Add Selected Track(s) to Playlist". The first item should be enabled only when the program is playing some track and the second item should be enabled only when there are some selected tracks. So, it would be nice if we could specify Enabled = False in the corresponding section of the Scripts.ini file and after that apply SDB.RefreshScriptItems to get those menu items disabled.

Similarly, there are some situations when some script from the Scripts menu should be temporarily hidden without its uninstalling. There we could have two options:
1) the menu item is hidden and the Action list of the hotkeys has removed its entry; for that we could use Visible = False, Active = False;
2) the menu item is hidden, but the Action list still displays that entry and, more importantly, the press on the specified hotkey should start the corresponding script even when it is not visible in the Scripts menu; for that we could use Visible = False, Active = True.

This second option is especially interesting to me. For example, I have Expand All script which expands all sub-nodes of the selected node by press on Num * hotkey. I have that item in the tree pop-up but, as I reported before, Shortcuts specified for items in the tree pop-up menu don't work at all, so I need to create item in the Scripts menu for that. It is OK to me, but it would be nice if that item is not visible in the Scripts menu, only active because of its hotkey. Why it should not be visible? Well, the answer is simple - it adds unceasingly one more item to the already overcrowded menu, while its use from that menu is unintuitive. You see, why would anybody want to expand sub-nodes of the selected node by using some item from the Scripts menu?

Here is another example why I would want to have item in the Scripts.ini file with active hotkey, but I don't want to see its item in the Scripts menu. I have Queue List script that has F3 hotkey which allows adding of the selected tracks to some playlist. That hotkey is hard-coded in the script, but it would be nice if users could change it using the Hotkey sheet in the Options dialog. So, I could add one more item in the Scripts.ini file to enable that, but in that case I would get one more item in the Scripts menu which would be unintuitive and confusing since I already have it in the Play menu.

As you could see, this is my practical suggestion how you could implement my another request: "Option to add Shortcut of some menu item to the hotkey's Action list in Options dialog needed".
TagsNo tags attached.
Fixed in build

Relationships

related to 0009027 assignedLudek Option to add Shortcut of some menu item to the hotkey's Action list in Options dialog needed 
related to 0006754 new ISDBMenuItem::ShortCut doesn't work for Tree popup menu 
related to 0011469 new Ability to create sub-menus for scripts of type 0 or 1 needed 

Activities

There are no notes attached to this issue.