INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Command to play playlist by playlist name?  (Read 537 times)

madmanx

  • Member
  • *
  • Posts: 4
Command to play playlist by playlist name?
« on: January 11, 2021, 10:40:08 am »

Hello All!

Currently I have modified resource.xml to include the following hotkey for playing a playlist:
    <Entry Key="Alt;1" Command="30007" Param="39765812" />

However, I would like to modify the command so that it uses playlist name instead of playlist id, because I want to be able to create the same playlist name on another computer and use the same resource.xml file to store the hotkey.

I searched the forum and this is all I found:
21.0.38 (1/18/2016)
Changed: Added the PlaylistType parameter to the Playback/PlayPlaylist command so that it's possible to start playback by a playlist name instead of playlist ID.

But I cannot figure out how to use this feature for my purpose.

Any help?
Logged

rolf_eigenheer

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 303
  • nothing more to say...
Re: Command to play playlist by playlist name?
« Reply #1 on: January 12, 2021, 04:25:53 am »

There are Command Line Parameters which cannot be accessed by MCC Commands.
See https://wiki.jriver.com/index.php/The_Command_Line
You have to call MC27.EXE with the command line parameters.
This can be assigned to a hotkey in Resource.XML like this:

<Entry Key="Ctrl;Shift;N" Type="Program" Command="mc27.exe" Param="/PlayNext selected" Global="1" />
Logged

madmanx

  • Member
  • *
  • Posts: 4
Re: Command to play playlist by playlist name?
« Reply #2 on: January 13, 2021, 11:33:49 am »

Thank you for the suggestion!

Here is what I ended up with:
<Entry Key="Ctrl;e" Type="Program" Command="mc27.exe" Param="/PlayReplace TREEPATH=Playlists\MyDancePlaylist" Global="0" />
Logged
Pages: [1]   Go Up