need help convert script from VBS to JS

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: need help convert script from VBS to JS

Re: need help convert script from VBS to JS

by TIV73 » Mon Aug 30, 2021 12:15 pm

Try

Code: Select all

currentTabControl.mediatree.controlClass.dataSource.focusedNode.title
That should give you the caption of whatever node is currently selected on the media tree.

need help convert script from VBS to JS

by Milode » Sun Aug 29, 2021 6:12 am

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

Top