INTERACT FORUM

Please login or register.

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

Author Topic: User defined global keyboard shortcuts  (Read 4400 times)

MRjr

  • World Citizen
  • ***
  • Posts: 111
User defined global keyboard shortcuts
« on: May 21, 2017, 01:21:03 pm »

The site recommended from the site https://wiki.jriver.com/index.php/User_defined_global_keyboard_shortcuts is
ftp://ftp.jriver.com/put/downloads/music/misc/Resource.xml. Attempting to access the site results in timeouts.

Anyone know where this file can actually be accessed?

Thanks.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: User defined global keyboard shortcuts
« Reply #1 on: May 21, 2017, 02:53:43 pm »

I'm not sure where you got that URL.  Perhaps you manually transcribed it or something? It's close, but the real URL is:

ftp://ftp.jriver.com/pub/downloads/music/misc/Resource.xml

BTW, I have some additional examples from my own Resource.xml file if you would like.

Good luck.

Brian.
Logged

MRjr

  • World Citizen
  • ***
  • Posts: 111
Re: User defined global keyboard shortcuts
« Reply #2 on: May 22, 2017, 04:06:42 pm »

I tried your site on Chrome, MSIE, and Firefox. All fail with a message approx. "ftp.jriver.com" took too long to reply.
Don't have any problems with normal web sites but the 'ftp' part has somehow created a problem for me.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: User defined global keyboard shortcuts
« Reply #3 on: May 22, 2017, 05:21:53 pm »

It sounds like you are behind a proxy server or a very restrictive firewall.

I could attach that file here if that would help you.  But it would have to be a zip file, since the forum won't accept XML files.  I could paste the entire text into a code box here I guess.

Code: [Select]
<!--
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>


Brian.
Logged

MRjr

  • World Citizen
  • ***
  • Posts: 111
Re: User defined global keyboard shortcuts
« Reply #4 on: May 22, 2017, 07:07:32 pm »

My router was restricting ftp. Fixed it and now I have the file. Would love to have some of your examples.

I tried...

<MJRS version="1.0">
   <COMMANDS>
      <Entry Command = "40000"   Text="Add to Playing Now" />
   </COMMANDS>
  <ACCELERATORS>
    <Entry Key="Ctrl;A" Command="40000" Param="0" />
  </ACCELERATORS>
</MJRS>

It did not work. I am not sure about the "Add to Playing Now" but it is available when you rt-clk on a selection. I want
to lft-clk to select a selection execute Ctrl-A to add it to the Playing Now List
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: User defined global keyboard shortcuts
« Reply #5 on: May 22, 2017, 07:21:34 pm »

Control-A is already taken.  It's the "select all" key (Edit > Select all).  You sometimes have to do some experimentation with this stuff because I don't think you can over-ride a factory default built in key like control-A .  Try something else like control shift A, or another key combination.

Good luck.

Brian.
Logged

MRjr

  • World Citizen
  • ***
  • Posts: 111
Re: User defined global keyboard shortcuts
« Reply #6 on: May 23, 2017, 12:08:11 pm »

Thanks - Yes I found it looking through the default xml file. Where are "Param" and "TranslateFlags" described. When are they needed?

Regards,

Milt
Logged

MRjr

  • World Citizen
  • ***
  • Posts: 111
Re: User defined global keyboard shortcuts
« Reply #7 on: May 23, 2017, 01:41:53 pm »

I assume that you can only use commands defined in the Media Center core Commands. If so, there appears to be no command corresponding to "Add to Playing Now". Does this mean I am out of luck? It seems unreasonable to not have that command defined. All of the functions accessible through a rt-clk on a selection should have the ability to define short cuts.

Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42450
  • Shoes gone again!
Re: User defined global keyboard shortcuts
« Reply #8 on: May 23, 2017, 02:13:15 pm »

I assume that you can only use commands defined in the Media Center core Commands. If so, there appears to be no command corresponding to "Add to Playing Now". Does this mean I am out of luck? It seems unreasonable to not have that command defined. All of the functions accessible through a rt-clk on a selection should have the ability to define short cuts.

There's no MCC to add files to Playing Now.  I'm not even sure how you'd pass the files?

But how about using the command line (/Append)?

There are some details here:
https://wiki.jriver.com/index.php/The_Command_Line
Logged
Matt Ashland, JRiver Media Center

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: User defined global keyboard shortcuts
« Reply #9 on: May 23, 2017, 02:40:11 pm »

Another possibility for you is to change the default behavior of the double click.

Tools > Options > General > Behavior > double click > (make your selection here)

The default is "replace playing now (all)".  You could set it to "add to playing now" (end or next are both options).  That would be faster than a key sequence probably.  I'm not sure if it meets your needs or not.  Just throwing out an option for you.

Good luck.

Brian.
Logged

MRjr

  • World Citizen
  • ***
  • Posts: 111
Re: User defined global keyboard shortcuts
« Reply #10 on: May 24, 2017, 12:19:06 pm »

Thanks - the double click worked just fine.

Regards,

Milt
Logged
Pages: [1]   Go Up