INTERACT FORUM

Please login or register.

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

Author Topic: Would somebody dumb this down for me, Please? - User Defined global shortcuts  (Read 2601 times)

Audio Only

  • Recent member
  • *
  • Posts: 34

User Defined Global Keyboard Shortcuts
From JRiverWiki
Jump to: navigation, search
Media Center supports user defined keyboard shortcuts. These shortcuts can be made global so that they are available even with Media Center minimized.

Currently, defining these shortcuts requires working with XML in a text editor. Below we'll step through how to get them up and running.


Setup

Place this sample file:
ftp://ftp.jriver.com/pub/downloads/music/misc/Resource.xml



In this folder: (you'll need to create the Custom Resources folder)
C:\Program Files\J River\Media Center 14\Data\Custom Resources\Resource.xml



Then edit this file with Notepad. It has some instructions at the top of the file.



The shortcuts specified in this file will be merged with the default keyboard shortcuts specified here:
C:\Program Files\J River\Media Center 14\Data\Default Resources\Resource.xml



I can make it this far, almost - I don't know how to edit the file


Logged

Audio Only

  • Recent member
  • *
  • Posts: 34

I'm trying to eliminate having to hold down the control key for volume up/down.

and make it global -

but when the next instructions say things like

______________________________________

Enum Command Parameter

10017 MCC_VOLUME_MUTE 0: toggle; 1: mute; 2: unmute
10018 MCC_VOLUME_UP int nDeltaPercent
10019 MCC_VOLUME_DOWN int nDeltaPercent



I have no clue as to how to proceed
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72546
  • Where did I put my teeth?

Substitute MC15 for MC14 above.  Notepad would probably work for editing the xml file.
Logged

Audio Only

  • Recent member
  • *
  • Posts: 34

I can open it in notepad.

Don't know what edit to make.
Logged

Audio Only

  • Recent member
  • *
  • Posts: 34

<!--
Media Center Resource XML (Default / English)
-->

<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.
-->

  <ACCELERATORS>

    <!-- Make Ctrl;1...4 act like player control buttons -->
    <Entry Key="Ctrl;1" Command="10004" Param="0" Global="1" />
    <Entry Key="Ctrl;NumPad1" Command="10004" Param="0" Global="1" />
    <Entry Key="Ctrl;2" Command="10000" Param="0" Global="1" />
    <Entry Key="Ctrl;NumPad2" Command="10000" Param="0" Global="1" />
    <Entry Key="Ctrl;3" Command="10002" Param="0" Global="1" />
    <Entry Key="Ctrl;NumPad3" Command="10002" Param="0" Global="1" />
    <Entry Key="Ctrl;4" Command="10003" Param="0" Global="1" />
    <Entry Key="Ctrl;NumPad4" Command="10003" Param="0" Global="1" />

    <!-- Make Ctrl;5 show a DVD menu (also to override rating the current song) -->
    <Entry Key="Ctrl;5" Command="10033" Param="0" Global="1" />
    <Entry Key="Ctrl;NumPad5" Command="10033" Param="0" Global="1" />

    <!-- Make Ctrl;6...7 run a program (as an example) -->
    <Entry Key="Ctrl;6" Type="Program" Command="MC13.exe" Param="/Command Pause" Global="1" />
    <Entry Key="Ctrl;7" Type="Program" Command="calc.exe" Global="1" />

    <!-- Make Ctrl;Shift;1...4 play playlists -->
    <Entry Key="Ctrl;Shift;1" Command="30007" Param="Keyboard Playlists\1" Global="1" />
    <Entry Key="Ctrl;Shift;NumPad1" Command="30007" Param="Keyboard Playlists\1" Global="1" />
    <Entry Key="Ctrl;Shift;2" Command="30007" Param="Keyboard Playlists\2" Global="1" />
    <Entry Key="Ctrl;Shift;NumPad2" Command="30007" Param="Keyboard Playlists\2" Global="1" />
    <Entry Key="Ctrl;Shift;3" Command="30007" Param="Keyboard Playlists\3" Global="1" />
    <Entry Key="Ctrl;Shift;NumPad3" Command="30007" Param="Keyboard Playlists\3" Global="1" />
    <Entry Key="Ctrl;Shift;4" Command="30007" Param="Keyboard Playlists\4" Global="1" />
    <Entry Key="Ctrl;Shift;NumPad4" Command="30007" Param="Keyboard Playlists\4" Global="1" />

  </ACCELERATORS>

</MJRS>
****************************************************************

To be clear - none of the above means anything to me that I can understand. I have no programming skills whatsoever and this might as welll be greek.

No way I can make this happen on my own.

If someone would be so kind ad to make the edit wnere I can cut and paste it in, I can make that happen .
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729

Assuming you want to change your F11/F12 keys to change Volume Down/Up in 5% increments, you would replace the ACCELERATORS section with...

Code: [Select]
<ACCELERATORS>

    <!-- Make F11/F12 change volume down/up in 5% increments -->
    <Entry Key="F11" Command="10019" Param="5" Global="1" />
    <Entry Key="F12" Command="10018" Param="5" Global="1" />

  </ACCELERATORS>

You could use -/+ instead of F11/F12, but you might have other uses for them. ;)
Logged

Audio Only

  • Recent member
  • *
  • Posts: 34

Assuming you want to change your F11/F12 keys to change Volume Down/Up in 5% increments, you would replace the ACCELERATORS section with...

Code: [Select]
<ACCELERATORS>

    <!-- Make F11/F12 change volume down/up in 5% increments -->
    <Entry Key="F11" Command="10019" Param="5" Global="1" />
    <Entry Key="F12" Command="10018" Param="5" Global="1" />

  </ACCELERATORS>

You could use -/+ instead of F11/F12, but you might have other uses for them. ;)

Thanks, Rick.

Actually, I want to use the "- "and "+" keys.

I have a computer based audio system and sit with a keyboard standing on end resting next to my listening position. IThe plus and minus key are the first ones on that end and I can reach them by just dropping my hand down. have been doing this for years with win amp and Foobar. I knew there had to be a way to do this.

So I assume, I just change that to replace the f11/F12 keys with  "-" and "+".

will give it a try - and backup the file before I do.

Thanks
Logged

Audio Only

  • Recent member
  • *
  • Posts: 34

Thank you!  Thank you!

Working just like I want.

Best regards

Ken
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729

You're welcome. The accountant in me has a hard time accepting what you're doing with that keyboard, but that's okay. ;D
Logged
Pages: [1]   Go Up