INTERACT FORUM

Please login or register.

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

Author Topic: Audio only - creating a hot key to jump fwd 20 seconds - is this right?  (Read 541 times)

FenceFurniture

  • Galactic Citizen
  • ****
  • Posts: 420

I have created
C:\Program Files\J River\Media Center 16\Data\Custom Resources\Resource.xml
and copied the sample xml file in to it.

I want use
Shift + Right Arrow to make an audio file jump forward 20 seconds
and
Shift + Left Arrow to make an audio file jump backwards 10 seconds

If my understanding is correct, I need to replace this code

<ACCELERATORS>

    <!-- Make Ctrl;1...4 act like player control buttons -->
    <Entry Key="Ctrl;1" Command="10004" Param="0" Global="1" />
    <Entry Key="Ctrl;2" Command="10000" Param="0" Global="1" />

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

SNIP, SNIP (to save space here)
    <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>



with this code

<ACCELERATORS>

<!-- Make Shift + Right or Left go forward 20 secs, or back 10 secs -->
<Entry Key="Shift;Right" Command="10034" Param="20000" TranslateFlags="17" />
<Entry Key="Shift;Left" Command="10035" Param="10000" TranslateFlags="17" />

  </ACCELERATORS>


Then save the file, and it will be automatically merged in?

I saw the list of translate flags somewhere but can no longer find it, so I don't know what 17 does, apart from knowing it does two things.
Logged

FenceFurniture

  • Galactic Citizen
  • ****
  • Posts: 420
Re: Audio only - creating a hot key to jump fwd 20 seconds - is this right?
« Reply #1 on: January 09, 2020, 10:16:54 pm »

Heh heh, I was a bit scaredy-cat to try that without verification, but I saved a copy of the Resource.xml, paused for breath, and put those lines in - they work as prescribed.

I have now added:
<!-- Make Ctrl+Shift + Right or Left go forward 60 secs, or back 30 secs -->
   <Entry Key="Ctrl;Shift;Right" Command="10034" Param="60000" TranslateFlags="17" />
   <Entry Key="Ctrl;Shift;Left" Command="10035" Param="30000" TranslateFlags="17" />

which makes Ctrl+Shift+Right jump forward 60 seconds, and Left goes back 30 seconds.

For any other novice (like me) following on: JRiver needs to be restarted for the code to take effect. You can find the rest of the instructions here (reply #2):
https://yabb.jriver.com/interact/index.php/topic,104146.msg723934.html#msg723934
Logged
Pages: [1]   Go Up