INTERACT FORUM

Please login or register.

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

Author Topic: Keyboard shortcuts to make changes to music globally.  (Read 3416 times)

icanrule

  • World Citizen
  • ***
  • Posts: 107
Keyboard shortcuts to make changes to music globally.
« 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. 
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Keyboard shortcuts to make changes to music globally.
« Reply #2 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
Logged
The opinions I express represent my own folly.

bblue

  • Galactic Citizen
  • ****
  • Posts: 307
Re: Keyboard shortcuts to make changes to music globally.
« Reply #3 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
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Keyboard shortcuts to make changes to music globally.
« Reply #4 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.
Logged
The opinions I express represent my own folly.

bblue

  • Galactic Citizen
  • ****
  • Posts: 307
Re: Keyboard shortcuts to make changes to music globally.
« Reply #5 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
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Keyboard shortcuts to make changes to music globally.
« Reply #6 on: June 12, 2014, 04:54:03 pm »

No, sorry.  You need the <ACCELERATORS>  </ACCELERATORS> tags.
Logged
The opinions I express represent my own folly.

bblue

  • Galactic Citizen
  • ****
  • Posts: 307
Re: Keyboard shortcuts to make changes to music globally.
« Reply #7 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
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Keyboard shortcuts to make changes to music globally.
« Reply #8 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.
Logged
The opinions I express represent my own folly.

bblue

  • Galactic Citizen
  • ****
  • Posts: 307
Re: Keyboard shortcuts to make changes to music globally.
« Reply #9 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
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2664
Re: Keyboard shortcuts to make changes to music globally.
« Reply #10 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.
Logged

dean70

  • Citizen of the Universe
  • *****
  • Posts: 508
Re: Keyboard shortcuts to make changes to music globally.
« Reply #11 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?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Keyboard shortcuts to make changes to music globally.
« Reply #12 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.
Logged
The opinions I express represent my own folly.

bblue

  • Galactic Citizen
  • ****
  • Posts: 307
Re: Keyboard shortcuts to make changes to music globally.
« Reply #13 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
Logged
Pages: [1]   Go Up