INTERACT FORUM

Please login or register.

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

Author Topic: Hotkey Macros for MC?  (Read 1795 times)

kogami

  • Recent member
  • *
  • Posts: 12
Hotkey Macros for MC?
« on: February 07, 2016, 03:34:50 pm »

Does JRiver support writing macros or hotkeys to perform a function, like putting the current song into a certain playlist?
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Hotkey Macros for MC?
« Reply #1 on: February 07, 2016, 08:13:17 pm »

Media Center has very robust automation options including:

* A Command Line Interface with a ton of capabilities: http://wiki.jriver.com/index.php/The_Command_Line
* A COM API which can be called by scripts and plugins: http://wiki.jriver.com/index.php/Media_Center_Automation
* A comprehensive REST-based web API called MCWS: http://wiki.jriver.com/index.php/Web_Service_Interface
* And a giant list of Core Commands for automation which can be called via Windows Messages, COM, the Command Line, or MCWS:
http://wiki.jriver.com/index.php/Media_Center_Core_Commands

With a little elbow grease, you can customize the built-in Keyboard Hotkeys, and call any of the MCC commands, or your own scripts to do basically anything you can dream up. However, MC does not include a dedicated, global hot-key manager to do this (the process is pretty nerdy and it only applies while MC itself is running).

So, it depends on what you mean by your question. If you mean, can I automate MC and do something (like the example you gave), and will it work well with third-party hot-key managers and automation tools (like EventGhost or Girder)?  Then yes, for sure.

But, if you were looking for a built-in, easy-to-use Global Hotkey editor, then no. You can do this, but if editing an XML file by hand isn't your cup of tea, then you might want to look for a third-party general automation/hotkey tool, and then use MC with it.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

kogami

  • Recent member
  • *
  • Posts: 12
Re: Hotkey Macros for MC?
« Reply #2 on: February 07, 2016, 08:40:11 pm »

That's a very thorough answer. I looked through the documentation for the command line and the core commands, and was unable to find any command that would move something to a given playlist.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Hotkey Macros for MC?
« Reply #3 on: February 08, 2016, 07:05:45 am »

Nothing that will do it in one step, unfortunately. But, it could be done with a script. MCWS has two commands that could be used together to do that:

http://localhost:52199/MCWS/v1/Playback/Info?Zone=-1
Will return info on the currently selected zone's Playing Now state, including the File Key of the currently playing track.

http://localhost:52199/MCWS/v1/Playlist/AddFile?Playlist=Path\To\Playlist&PlaylistType=Path&File=KEY&FileType=Key
So, you'd need to save the file key returned by the command above, and then run this, inserting the key in, and it'd do it.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/
Pages: [1]   Go Up