How do you delete a script created node?
How do you delete a script created node?
Delete seems to be disabled. I end up restarting MM to get rid of "test" nodes.
Some other APIs & attributes would be useful for future versions:
- it is not possible to designate all major nodes (eg. if i want to create a node after the genre node, i can't designate "Node_Genre" or "Node_Year")
- also it does not seem possible to select a node by script (eg. allowing a keyb shortcut to expand & select a new node, like hitting "F8" for accessing the artist one)
- it is not possible to designate all major nodes (eg. if i want to create a node after the genre node, i can't designate "Node_Genre" or "Node_Year")
- also it does not seem possible to select a node by script (eg. allowing a keyb shortcut to expand & select a new node, like hitting "F8" for accessing the artist one)
Octopod
Octopod, I found a way to add a shortcut which selects and expands a script-made node (like F8 for artist node): when creating the node, add a statement
You can access your node later using SDB.Objects("myNode"). Then create a menu, set its visibility to false (if you wish) and associate a shortcut with it. Finally, in the function called by the menu add the follwing:
Code: Select all
SDB.Objects("myNode") = myNode
Code: Select all
SDB.Objects("myNode").expanded=false
SDB.Objects("myNode").expanded=true
Thanks, exactly what i was looking for.
I noticed two weird behaviour (bugs or enhancements?):
- when assigning a shortcut to a users' script, you must add a menu entry for this script (ie. only adding an icon on a toolbar and its shortcut does not work until the same is added as a menu entry)
- when browsing within custom nodes created by scripts, they are added to the history but ignored when you try to click prev/next buttons (MM jumps to its own 1st node in the list and the unknown ones are removed from the list)
I noticed two weird behaviour (bugs or enhancements?):
- when assigning a shortcut to a users' script, you must add a menu entry for this script (ie. only adding an icon on a toolbar and its shortcut does not work until the same is added as a menu entry)
- when browsing within custom nodes created by scripts, they are added to the history but ignored when you try to click prev/next buttons (MM jumps to its own 1st node in the list and the unknown ones are removed from the list)
Octopod
Good to know about CurrentNode... this isn't documented, may be the help file doesn't reflect the latest version of the API?jiri wrote:In order to set the selected node you can use CurrentNode property of Tree object.
Also, in the next release it will be possible to remove nodes and some other useful minor features will be added.
Jiri
Removing nodes looks great... if it's not too difficult, it would be nice to have a method to refresh the main track window (or is it possible to do this already?)
I think that Refresh is not strict to MM but for VBScript so this is why it dosn't show in API.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to attach PICTURE/SCREENSHOTS to forum posts
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to attach PICTURE/SCREENSHOTS to forum posts
Jiri,
No, they aren't in the help file. Just to make sure we're talking about the same file, I'm looking at the one I downloaded from http://www.mediamonkey.com/sw/webhelp/M ... ipting.chm.
By the way, is there any way to add menus to the pop up menu in the tree so that they're only shown when clicking on specific nodes?
No, they aren't in the help file. Just to make sure we're talking about the same file, I'm looking at the one I downloaded from http://www.mediamonkey.com/sw/webhelp/M ... ipting.chm.
By the way, is there any way to add menus to the pop up menu in the tree so that they're only shown when clicking on specific nodes?
Sorry Pablo, I should have made it clear that until 2.3 is released there is a beta documentation in another location: http://www.mediamonkey.com/beta/MediaMo ... ipting.chm
Jiri
Jiri