INTERACT FORUM

Please login or register.

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

Author Topic: Custom resource.xml no longer supported?  (Read 1821 times)

andrewberg

  • Galactic Citizen
  • ****
  • Posts: 418
Custom resource.xml no longer supported?
« on: May 23, 2017, 08:03:16 pm »

>> First off: Thanks to MC for fixing the recently reported conflict between space-bar as white char vs. Play/Pause accelerator key! You found the smartest solution:

Quote
Now a space is supported as long as it's not the first character in the search string

However, since one poster had mentioned the option to use a custom 'Resource.xml' file, I had created one and edited so as to translate the space bar into Play/Pause 'in fullscreen only' (flag '8'), but to no avail... only when I made the same edit to the default 'resource.xml' would the space bar have the desired effect, 'white char in all contexts but fullscreen video'.
Is that just me, or a deprecated feature no longer supported in MC?

Edit: Just checked, and the custom command 'Ctrl+7' for 'calc.exe' is still working...
So maybe I did sth wrong in my 'space bar' command? Here's my custom resource.xml content for review -- the relevant line is <Entry Key="Space" Command="10000" Param="-1" TranslateFlags="8" />:

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
  Global: 1 if you want the accelerator to be translated when MC doesn't have the focus
  NoShowAsShortcut: 1 if you don't want MC to show this shortcut in menus, tooltips, etc.
  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

  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>

    <Entry Key="Space" Command="10000" Param="-1" TranslateFlags="8" />

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

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

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

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

  </ACCELERATORS>

</MJRS>
Logged
"To be is to do" (Socrates) - "To do is to be" (Sartre) - "Do be do be do" (Sinatra)
Pages: [1]   Go Up