Dear all,
Sorry, unfortunately I have less experience with JS, but want to use at least one script in in MM5 that I wrote in VBS for MM4. For the script I want to determine the currently selected Node-Name in the Media-Tree, in VBS it was easy:
VBS:
Sub AlbumName_From_PlaylistName
Dim NodeName
NodeName=SDB.MainTree.CurrentNode.Caption
......
Can someone help me?
What is the corresponding command in JS?
Thank a lot for your support
Best Regards
Michael
need help convert script from VBS to JS
Moderators: jiri, drakinite, Addon Administrators
Re: need help convert script from VBS to JS
Try
That should give you the caption of whatever node is currently selected on the media tree.
Code: Select all
currentTabControl.mediatree.controlClass.dataSource.focusedNode.title