INTERACT FORUM

More => Old Versions => JRiver Media Center 19 for Windows => Topic started by: icanrule on June 12, 2014, 11:32:17 am

Title: Keyboard shortcuts to make changes to music globally.
Post by: icanrule on June 12, 2014, 11:32:17 am
I'm trying to assign shortcuts to my keyboard that will work anytime.  I am using a Microsoft 3000 v2.0 keyboard.  One of things I can do is assign a favorite as a command line prompt.  Is there some way I can associate a command line prompt to adjust the rating?  I've looked through the command prompt commands and couldn't figure out which one to use. 
Title: Re: Keyboard shortcuts to make changes to music globally.
Post by: BryanC on June 12, 2014, 11:39:18 am
http://wiki.jriver.com/index.php/Media_Center_Core_Commands
http://wiki.jriver.com/index.php/User_Defined_Global_Keyboard_Shortcuts

10023
Title: Re: Keyboard shortcuts to make changes to music globally.
Post by: MrC on June 12, 2014, 11:40:00 am
Create your own bindings to the existing Rating keyboard shortcuts, setting them as global.  See:

   http://wiki.jriver.com/index.php/Keyboard_Hot-keys
   http://wiki.jriver.com/index.php/User_Defined_Global_Keyboard_Shortcuts
Title: Re: Keyboard shortcuts to make changes to music globally.
Post by: bblue on June 12, 2014, 03:06:49 pm
http://wiki.jriver.com/index.php/Media_Center_Core_Commands
http://wiki.jriver.com/index.php/User_Defined_Global_Keyboard_Shortcuts

10023

The Resources.xml at the ftp site referred to in the second URL above, contains only an Accelerators section.  In my data/Default Resources folder, the Resource.xml file (dated 5/1/14) already has a Commands and Accelerators section, but in Commands, 10023 is skipped.  Shouldn't that be included?  My rating keyboard shortcuts have never worked, but others do.

Just wondering about that omission.  How should the line read?

--Bill
Title: Re: Keyboard shortcuts to make changes to music globally.
Post by: MrC on June 12, 2014, 03:33:33 pm
Quit MC and be sure the server is stopped too (check Task Manager to be sure MC proccess are all gone).

Copy these from C:\Program Files (x86)\J River\Media Center 19\Data\Default Resources:

<!-- Rate current song -->
    <Entry Key="Ctrl;Shift;0" Command="10023" Param="0" />
    <Entry Key="Ctrl;Shift;1" Command="10023" Param="1" />
    <Entry Key="Ctrl;Shift;2" Command="10023" Param="2" />
    <Entry Key="Ctrl;Shift;3" Command="10023" Param="3" />
    <Entry Key="Ctrl;Shift;4" Command="10023" Param="4" />
    <Entry Key="Ctrl;Shift;5" Command="10023" Param="5" />
    <Entry Key="Ctrl;Shift;NumPad0" Command="10023" Param="0" />
    <Entry Key="Ctrl;Shift;NumPad1" Command="10023" Param="1" />
    <Entry Key="Ctrl;Shift;NumPad2" Command="10023" Param="2" />
    <Entry Key="Ctrl;Shift;NumPad3" Command="10023" Param="3" />
    <Entry Key="Ctrl;Shift;NumPad4" Command="10023" Param="4" />
    <Entry Key="Ctrl;Shift;NumPad5" Command="10023" Param="5" />

and paste them into a same-named file, but in the folder Custom Resources at the same level as Default Resources.

Edit those, and add the Global keyword, and surround them with <ACCELERATORS> and </ACCELERATORS> tags:

<ACCELERATORS>
<!-- Rate current song -->
    <Entry Key="Ctrl;Shift;0" Command="10023" Param="0" Global="1" />
    <Entry Key="Ctrl;Shift;1" Command="10023" Param="1" Global="1"/>
    <Entry Key="Ctrl;Shift;2" Command="10023" Param="2" Global="1"/>
    <Entry Key="Ctrl;Shift;3" Command="10023" Param="3" Global="1"/>
    <Entry Key="Ctrl;Shift;4" Command="10023" Param="4" Global="1"/>
    <Entry Key="Ctrl;Shift;5" Command="10023" Param="5" Global="1"/>
    <Entry Key="Ctrl;Shift;NumPad0" Command="10023" Param="0" Global="1"/>
    <Entry Key="Ctrl;Shift;NumPad1" Command="10023" Param="1" Global="1"/>
    <Entry Key="Ctrl;Shift;NumPad2" Command="10023" Param="2" Global="1"/>
    <Entry Key="Ctrl;Shift;NumPad3" Command="10023" Param="3" Global="1"/>
    <Entry Key="Ctrl;Shift;NumPad4" Command="10023" Param="4" Global="1"/>
    <Entry Key="Ctrl;Shift;NumPad5" Command="10023" Param="5" Global="1"/>
</ACCELERATORS>

Now those will be global shortcuts after starting MC.

Edit: added required <ACCELERATORS> </ACCELERATORS> tags.
Title: Re: Keyboard shortcuts to make changes to music globally.
Post by: bblue on June 12, 2014, 04:48:34 pm
MrC,

You meant to copy *only* what you showed edited (2nd part) into Media Center 19\Data\Custom Resources\Resource.xml, without the
<ACCELERATORS> 
</ACCELERATORS> 
open and close section?

If I understood correctly, that's what I did, but MC still does not recognize the shortcuts.  I also tried with the open/close designators but that didn't help.  I can still set the rating by clicking on the highest star.

--Bill
Title: Re: Keyboard shortcuts to make changes to music globally.
Post by: MrC on June 12, 2014, 04:54:03 pm
No, sorry.  You need the <ACCELERATORS>  </ACCELERATORS> tags.
Title: Re: Keyboard shortcuts to make changes to music globally.
Post by: bblue on June 12, 2014, 05:31:49 pm
No, sorry.  You need the <ACCELERATORS>  </ACCELERATORS> tags.

No problem.  So here is the total contents of my data\Custom Resources\Resource.xml.

Code: [Select]
<ACCELERATORS>
<!-- Rate current song -->
    <Entry Key="Ctrl;Shift;0" Command="10023" Param="0" Global="1"/>
    <Entry Key="Ctrl;Shift;1" Command="10023" Param="1" Global="1"/>
    <Entry Key="Ctrl;Shift;2" Command="10023" Param="2" Global="1"/>
    <Entry Key="Ctrl;Shift;3" Command="10023" Param="3" Global="1"/>
    <Entry Key="Ctrl;Shift;4" Command="10023" Param="4" Global="1"/>
    <Entry Key="Ctrl;Shift;5" Command="10023" Param="5" Global="1"/>
    <Entry Key="Ctrl;Shift;NumPad0" Command="10023" Param="0" Global="1"/>
    <Entry Key="Ctrl;Shift;NumPad1" Command="10023" Param="1" Global="1"/>
    <Entry Key="Ctrl;Shift;NumPad2" Command="10023" Param="2" Global="1"/>
    <Entry Key="Ctrl;Shift;NumPad3" Command="10023" Param="3" Global="1"/>
    <Entry Key="Ctrl;Shift;NumPad4" Command="10023" Param="4" Global="1"/>
    <Entry Key="Ctrl;Shift;NumPad5" Command="10023" Param="5" Global="1"/>
</ACCELERATORS>

Do you see anything wrong?  It sure isn't working.

Now that I look at the COMMAND section of data\Default Resources\Resource.xml again, it doesn't seem like the omission of an entry for 10023 would be an issue.  Perhaps this new file needs the open and close <MJRS version="1.0"> and </MJRS> ?

--Bill
Title: Re: Keyboard shortcuts to make changes to music globally.
Post by: MrC on June 12, 2014, 05:43:20 pm
Arg, I really should have suggested taking the original, and cutting out the parts you don't want.  You also need the top level:

   <MJRS version="1.0">

   </MJRS>


tags.   Attached is one I use and test with routinely.  Change the suffix from .txt to .xml and add your entries like those shown.
Title: Re: Keyboard shortcuts to make changes to music globally.
Post by: bblue on June 13, 2014, 12:07:41 pm
Thanks.  I should have just followed standard XML formatting to start with.  I knew better.

Anyway, the problem I have isn't a global issue so no variation of the file makes any difference.  I must have something else grabbing ctr-shift sequences.

--Bill
Title: Re: Keyboard shortcuts to make changes to music globally.
Post by: BryanC on June 16, 2014, 12:21:31 pm
Thanks.  I should have just followed standard XML formatting to start with.  I knew better.

Anyway, the problem I have isn't a global issue so no variation of the file makes any difference.  I must have something else grabbing ctr-shift sequences.

--Bill

http://support.microsoft.com/kb/967893

One place to look.
Title: Re: Keyboard shortcuts to make changes to music globally.
Post by: dean70 on June 16, 2014, 05:07:03 pm
Can existing keyboard shortcuts be reused? e.g. Ctrl+G to collapse tree adds no value for me - can this key be re-purposed for some other function?
Title: Re: Keyboard shortcuts to make changes to music globally.
Post by: MrC on June 16, 2014, 05:18:25 pm
Add the binding to your data\Custom Resources\Resource.xml file and it will override existing Default Resources entries.
Title: Re: Keyboard shortcuts to make changes to music globally.
Post by: bblue on June 17, 2014, 04:34:27 pm
I still don't see what's happening with my keyboard->ratings mappings.  It doesn't make any difference if the ctrl-shift-num (or numpad-num) are assigned globally or not.

Currently, with those assignments in boththe default resources.xml and custom resources.xml, a ctrl-shift-numpad-4 jumps back a few seconds (not ten), 6 jumps forward a few seconds (also not ten), 7 moves the playlist line highlite to top, and 1 moves it sometimes to the bottom, other times to the services-Plugins menu.  The rest of the numbers don't seem to do anything that I can see.

Also, Bryan, I don't have the Vista type keyboard/languages options, and no obvious way to change key assignments.  This is w8.1 Pro 64-bit.

Anyone recognize what state this is getting into?

--Bill