INTERACT FORUM

Please login or register.

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

Author Topic: Missing MCC Commands  (Read 949 times)

rolf_eigenheer

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 303
  • nothing more to say...
Missing MCC Commands
« on: May 01, 2022, 10:07:44 am »

Hi Matt

A long time ago you added /PlayReplace selected, /Append selected and /PlayNext selected as command line parameter. They are very useful. But they are handled different than MCC commands. The execution order between MCC and command line is not guaranteed.
Calling these two commands in this order sometimes results in reversed execution. This means, that MC switches to Playing now and then adds the highlighted title from playing now to the end of the list.
    <Entry Key="Ctrl;Shift;2" Type="Program" Command="mc28.exe" Param="/Append selected" Global="1" />
    <Entry Key="Ctrl;Shift;F2" Command="22001" Param="2" Global="1" />      

Using MCC instead of command line parameters also would allow to use the resource.xml independent of the name of the executable.

Logged

rolf_eigenheer

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 303
  • nothing more to say...
Re: Missing MCC Commands
« Reply #1 on: May 10, 2022, 01:05:08 am »

Can anyone from the developers crew explain, if there is a problem to add these commands as MCC ? Or is there a reason why this three commands should be called different than all others ?

Wouldn't it be possible to handle all commands in MCC? And with a single command line command 'call MCC' the both interfaces would be identiical. 
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Missing MCC Commands
« Reply #2 on: May 10, 2022, 07:46:13 am »

What MCC additions are you looking for exactly?  The mapping isn't always one to one as you've seen between the command line and MCC commands.  Thanks.
Logged
Matt Ashland, JRiver Media Center

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10968
Re: Missing MCC Commands
« Reply #3 on: May 10, 2022, 08:07:19 am »

Order of execution is never guaranteed if you do it on independent key-presses. If you have a compound action, what I would recommend is to actually make a batch file that runs both commands through the commandline, that way its more likely that the first is complete before the second runs.

The reason these commands are run through the launcher is that while MCC commands can take parameters, passing anything more complex then a number is complicated (like a filename, "selected" is just a special case in the same logic). And most MCC commands exist because MC uses them to communicate between components - for this purpose we already have MCC_PLAY_ADVANCED, but its parameter payload is complicated and can't be fed from a keybinding.

"play all selected files", "append all selected files" etc in how many variants of playback methods there are seems extremely specific for MCC commands when you can already do these through the launcher, which is a more versatile interface for complex commands with parameters, and doesn't require making a lot of special cases.

In summary, MCC is mostly designed to carry two numbers, the command and one numeric parameter. More complex parameters require an extreme level of complexity .. or using the launcher, which can translate for you. Thats what its for.
The launcher can also run MCC commands already, eg. "MC29.exe /MCC 22001,2" should work fine.
Logged
~ nevcairiel
~ Author of LAV Filters

rolf_eigenheer

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 303
  • nothing more to say...
Re: Missing MCC Commands
« Reply #4 on: May 10, 2022, 08:24:43 am »

Order of execution is never guaranteed if you do it on independent key-presses. If you have a compound action, what I would recommend is to actually make a batch file that runs both commands through the commandline, that way you can be sure the first completed before the second runs.

The reason these commands are run through the launcher is that while MCC commands can take parameters, passing anything more complex then a number is complicated. And most MCC commands exist because MC uses them to communicate between components - for this purpose we already have MCC_PLAY_ADVANCED, but its parameter payload is complicated and can't be fed from a keybinding.

OK. But the 3 commands /PlayReplace selected, /Append selected and /PlayNext selected do not require complex parameters. They could easily be assigned to a MCC number.

Regarding the execution order I can't follow your explanations. I would expect that Cursor Down, followed by Enter would be executed exactly in this order.. You say that this is not guaranteed ?
Logged

rolf_eigenheer

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 303
  • nothing more to say...
Re: Missing MCC Commands
« Reply #5 on: May 10, 2022, 08:29:47 am »

What MCC additions are you looking for exactly?  The mapping isn't always one to one as you've seen between the command line and MCC commands.  Thanks.

I ask you to add MCC commands for these 3 commands: /PlayReplace selected, /Append selected and /PlayNext selected.
I use them very often. While browsing the lib, a single key ads the item to playing now.  In Party-Mode this gives a jukebox like operation.

Thanks
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Missing MCC Commands
« Reply #6 on: May 10, 2022, 08:36:56 am »

Coming next build:
NEW: Added MCC_PLAY_SELECTED (10069) to play the selected files (0: play replace, 1: append, 2: play next).
Logged
Matt Ashland, JRiver Media Center

rolf_eigenheer

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 303
  • nothing more to say...
Re: Missing MCC Commands
« Reply #7 on: May 20, 2022, 11:07:24 am »

Coming next build:
NEW: Added MCC_PLAY_SELECTED (10069) to play the selected files (0: play replace, 1: append, 2: play next).

Thanks! This works.
How to assign a MCC command to a remote control key when the command is not in the list ? Is there a way to use the MCC numbers ?
Logged
Pages: [1]   Go Up