You have left the original resource.xml file in place, I assume, in;
C:\Program Files\J River\Media Center 24\Data\Default Resources\Resource.xml
Right. I didn't edit it. Well, maybe I tried but then reverted all the changes, because it made no difference which file to edit. The final result was always the same, - as I described. Now the default file rests where it should be: at the path you indicated.
Although where did you find the list of parameters for the 26031 MCC command?
I didn't.
So I guessed the whole group by trial and error. I set the param and watched the player's behaviour after editing Resource.xml.
Maybe that sets the start of a parameter count to 1, and each following line is incremented by 1?
I'm not sure. As far as I remember there were numbers that seemed to do nothing (maybe there were some hidden actions?)
Also, command 26031 isn't defined in the standard resource.xml file. That may not be an issue, but it could be.
Right, it isn't in the standard xml file, but it is definitely on the command list here:
https://wiki.jriver.com/index.php/Media_Center_Core_Commands. To make sure I did several more tests with system restarts. I ended up with custom Resource.xml like this:
<MJRS version="1.0">
<!--
ACCELERATORS:
Key: semi-colon delimited list of key strokes to be pressed (see list below for special keys)
note that the only valid combinations are: [Key], [Key];Ctrl, [Key];Ctrl;Shift, [Key];Alt
Type: the type of command (defaults to MCC)
MCC: the command is an MC command
Program: the command is a program to run
Command: the MCC command index / name of program
Param: the parameter for the MCC command / program arguments
TranslateFlags: flags that determine when and how an accelerator is translated (binary or'd together)
1: don't translate in edits, comboboxes, and other data entry controls
2: don't translate in fullscreen mode or theater view
4: don't translate in any type of popup window
8: only translate in fullscreen
16: don't translate in IE, VB controls, or other unknown rich controls
32: targets playback engine / display (DVD, image playback, etc.)
64: only translate when Action Window is focused
NoShowAsShortcut: 1 if you don't want MC to show this shortcut in menus, tooltips, etc.
Global: 1 if you want the accelerator to be translated even when MC doesn't have the focus
Special key list: Insert, Delete, -, +, Right, Left, Up, Down,
NumPad0, NumPad1, NumPad2 (etc.), F1, F2, F3 (etc.), Backspace, Enter, Escape,
Apps, Page Up, Page Down, Home, End, Space, Print Screen, Tab
Remember that order is relevant when the same shortcut appears multiple times.
Variable list is here: .jriver.com/index.phhttps://wikip/Media_Center_Core_Commands#List
-->
<ACCELERATORS>
<Entry Key="Space" Command="10018" Param="1" />
<Entry Key="Ctrl;P" Command="10018" Param="1" />
<Entry Key="Alt;Q" Command="10018" Param="1" />
</ACCELERATORS>
</MJRS>
I think this one adds some understanding to the issue. I saved it and restarted Windows. On startup I opened MC and checked which hotkeys worked. 10018 is a command to turn up the volume (the volume bar should move up) from the default xml file, I copied it right from there and changed only key combinations. As a result I got only Space working (the volume bar moved), the other two combinations did nothing, although Ctrl;P was also indicated in the default file (it should play/pause), and I should have overwritten it. But I overwrote only Space (which does the same by default). As far as I understand, the problem is in the key combinations and maybe some Windows restrictions, but still I have no clue how to solve it.
I can't see anything dramatically wrong, except possibly your choice of a couple of keystrokes, which may clash with standard Windows Shortcuts.
I considered this possible clash, that's why I chose Ctrl;P from default Resource.xml as a test combination. If it was in the default file, it should have worked, right? But it didn't. So even if there is a clash, why is this combination in the default xml? I don't quite get it so far.
I just noticed that even though you mention you have bought MC, and you only joined the forum today so I would expect you to be using MC25, the path you mention above points to MC24.
Which version are you using and trying to modify, MC24 or MC25? Because if MC25, you may be putting your modified resource.xml file in the wrong location. Did you trial MC24 previously and leave a copy of it on your PC, or was that the version you bought?
No, I indicated the right path and the right version. I bought MC24, although it was some time ago.
Thanks for the command list here:
https://yabb.jriver.com/interact/index.php/topic,118174.msg817635.html#msg817635. But as I understand from the tests above, this is not the problem, because the command wasn't in the test - I excluded it intentionally. But thanks anyway.