INTERACT FORUM
More => Old Versions => JRiver Media Center 23 for Windows => Topic started by: RoderickGI on August 21, 2017, 01:12:53 am
-
I have been fixing some Remote Control issues after being prompted by a failed button on my Harmony 880 and the discussion in this thread: Toggle Automatic Comskip - Help assign to Remote (https://yabb.jriver.com/interact/index.php?topic=111678.0).
I either didn't know, or had forgotten that Keyboard Keys can be sent to MC using commands defined against button on my remote, using MCC Command 27000 as briefly described in the Wiki here: https://wiki.jriver.com/index.php/MCC_KEYSTROKE
As noted in the Wiki article, the list of supported keys is just a sample. In fact I have done some sampling of my own and it appears that MC can send all the main keystrokes, including navigation, numbers, text, and control keys from this list of Virtual-Key Codes: https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
But the MCC Command 27000 doesn't seem to support key modifiers such as Shift Ctrl, or Alt, and hence can't support lower case text in addition to upper case, and can't support any key combinations. I understand that would require two parameters to be passed to the command in the form "nKeyCode, nShiftAltCtrl", and the command would need to be able to handle them both correctly.
While initially I was just trying to work out how to send Ctrl+K, and that isn't required any more, I do think it would be good to be able to send the full range of keystrokes from a single remote control button. I'm thinking such applications as adding a movie to my "Movies to watch" Playlist with a single button press, where the Playlist name is actually keyed in instead of relying on it being at the top of a list or something similar.
To be honest I don't have a big list of applications, but I have seen many people try to send keystrokes in the forum previously, probably because they didn't understand MCC Commands and the Remote Control functionality. Many of those people head off to install, learn, and use some automation software, at some great effort. Wouldn't it be good if they could just implement a "Ctrl+D" command from the remote easily, and then learn how to use MCC Commands over time? It is about winning hearts and minds.
So, could the MCC Command 27000 be enhanced to include modified keystrokes, including Shift, Alt, Ctrl combinations, plus upper and lower case characters? Please. It looks like it could be easy to do. Maybe.
If so, could someone provide a full list of supported keystrokes. It can be in rough form. I'm happy to format it and update the Wiki.
Thank you.
-
In my opinion, the idea of an MCC that sends keystrokes is kind of backwards. MCCs should be commands. Not keyboard keys that might be mapped differently on different systems. Keyboard keys are shortcuts for real commands. The real commands should be used instead.
But what Roderick is asking for is more like a Macro facility, and might be a great idea. If I were designing it, I'd make a macro definition and testing dialog/tool. Then I'd make the macros callable via a new MCC command, with a parameter that specifies the ID of the macro.
This would allow these macros to be assigned to keyboard keys (via the normal keyboard mapping file), or to remote control keys, via a command that runs the appropriate MCC.
Just some early morning thoughts.
Brian.
-
In fact, isn't this mostly already built? With Play Power (https://yabb.jriver.com/interact/index.php/topic,111659.0.html)?
Seems like just a little extra work could turn it into a fully functional macro facility for MC.
Brian.
-
True enough. It is a bit backward, although some keystroke combinations can apply at the OS level, outside of MC, which could be handy. The ability to assign and sequence MCC and Keyboard commands, plus run external executables, all against one remote control button is already a sort of macro.
But I worked in software sales for years, on the application/technical side. So a lot of it is about winning hearts and minds.
Prospective buyer: Can I send keyboard commands to MC from my remote?
JRiver: Yes
Prospective buyer: Excellent. That was a mandatory requirement. Now, how do I do this...?
Plus it just sort of completes the offering in remote control configuration, as much as can be done on the MC side. The apparent lack of ability to use keystroke modifiers makes the ability to send keystrokes at all quite limited.
Hmmm, I haven't investigated Play Power yet, or Engen. If there is some synergy there, then good.
-
I just had a quick look at Play Power. It seems to be using identical functionality to the Remote Control configuration section, except for the Engen specific commands. So Play Power would benefit from my request as well.