INTERACT FORUM

Please login or register.

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

Author Topic: editing the keyboard file  (Read 2001 times)

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
editing the keyboard file
« on: October 22, 2008, 06:42:21 am »

i made my own keyboard file. as far as i understand it works like this:

mc first looks in the custom resource file for the keystroke.
when it is not there it picks the one in the default recourse file.
i changed the playback engine for the up down etc keys succesfully to scroll the image instead of going through the menu.

now my problem:
i want to disable the page up and page down for the playback engine.
i tried to take the whole command out of the custom resource. this did not work because default takes over.
i also tried to take away the command part only.. like
   <Entry Key="Page Down" Command="" TranslateFlags="32" />
that did not help either. taking the commands out of the default did work, ofcourse.

is there a way i can accomplish that using the custom resource file only?

 :)
gab

Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42344
  • Shoes gone again!
Re: editing the keyboard file
« Reply #1 on: October 22, 2008, 09:22:31 am »

is there a way i can accomplish that using the custom resource file only?

Not really.  It's designed to allow adding shortcuts, not remap existing ones.
Logged
Matt Ashland, JRiver Media Center

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: editing the keyboard file
« Reply #2 on: October 22, 2008, 11:29:42 am »

ok, thanks. clear enough.
guess ill make a bat file then.

 :)
gab
Logged

Rob L

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 469
Re: editing the keyboard file
« Reply #3 on: October 22, 2008, 05:13:30 pm »

are these files documented then?
i.e. locations/filenames and what goes in them?

never knew they even existed... but could be handy :-)
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: editing the keyboard file
« Reply #4 on: October 22, 2008, 05:25:24 pm »

are these files documented then?
i.e. locations/filenames and what goes in them?

never knew they even existed... but could be handy :-)
well yes they are. there is some documentation in the wiki:
http://wiki.jrmediacenter.com/index.php/User_Defined_Global_Keyboard_Shortcuts

now what i do is just test anything on the resource.xml file you find in the data folder>Default Resources in the mc 12 instalation folder. a reinstall of mc will just overwrite all the stupid mistakes i make, or you could just back up the original. when it works, i make a a custom resources folder with a copy of my last succesfull version. works for most things.
to understand all the numbers there you will need this info:
http://wiki.jrmediacenter.com/index.php/Media_Center_Core_Commands

it can be very handy when you really want/need to change anything. there are a few threads in the forum about it.

and when stuck this is the place to ask.    :P

 :)
gab
Logged
Pages: [1]   Go Up