INTERACT FORUM

Please login or register.

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

Author Topic: Custom XML Keyboard Keys - Help me edit resource.xml  (Read 2529 times)

madmedia

  • Recent member
  • *
  • Posts: 22
Custom XML Keyboard Keys - Help me edit resource.xml
« on: November 04, 2015, 11:22:27 am »

Could someone please tell me how to assign keys to "," "." "/"

I cannot get the following to work in resource.xml:

<Entry Key="alt;." Command="10018" Param="5" />
<Entry Key="alt;period" Command="10018" Param="5" />

How can I modify my entry so that it works with "," "." "/" keys?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42388
  • Shoes gone again!
Re: Custom XML Keyboard Keys - Help me edit resource.xml
« Reply #1 on: November 04, 2015, 11:26:04 am »

Try "Decimal" for the ".".
Logged
Matt Ashland, JRiver Media Center

madmedia

  • Recent member
  • *
  • Posts: 22
Re: Custom XML Keyboard Keys - Help me edit resource.xml
« Reply #2 on: November 04, 2015, 11:30:21 am »

"Decimal" didn't work for me... does the following command work for you?

    <Entry Key="Alt;Decimal" Command="10018" Param="5" />
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Custom XML Keyboard Keys - Help me edit resource.xml
« Reply #3 on: November 04, 2015, 12:23:32 pm »

According to the notes in the Resource file "Decimal" is for the "." key on the numeric keypad.  I'm assuming you're trying to map the "." key on the main keyboard (at the lower right hand quadrant).

I was able to assign keys to Control-. and Control-,   .  I then tried Alt-. and it worked for me too.  So then I tried your command (Volume Up 5%) mapped to Alt-. and it worked correctly also.  Here's my exact entry:

<Entry Key="Alt;." Command="10018" Param="5" />

Do you have any other mapped keys working?  Is your entry between the Accelerators markers in the file?  If they are outside of those markers, they won't work.

Disclaimer:  I'm on a Mac, and not Windows. Most of this stuff translates over exactly the same, but it's worth mentioning in this case since there might be a difference.

Get some other more normal key working first with a simple command.  Then you'll be sure of the technique.  Good luck.

Brian.
Logged

madmedia

  • Recent member
  • *
  • Posts: 22
Re: Custom XML Keyboard Keys - Help me edit resource.xml
« Reply #4 on: November 04, 2015, 12:52:00 pm »

I have other mapped keys working, for example:
    <Entry Key="Alt;-" Command="10019" Param="5" />
works just fine.

However,
    <Entry Key="Alt;." Command="10018" Param="5" />
does not work.

I am on a PC by the way. And I'm not using the numpad keys. So '.' and '-' are on the main keyboard. '-' works just fine for this command, while '.' does not work.

Any other ideas? Can someone with a PC try the "Alt;." command above to see if it works for them?

Thanks for the help!
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Custom XML Keyboard Keys - Help me edit resource.xml
« Reply #5 on: November 04, 2015, 05:07:32 pm »

In my early testing with Resource.xml I got bitten by some syntax errors.  There were no symptoms that I had syntax errors.  Just that my keys didn't work!  Maybe yours are all correct.  But it's worth testing.

How about changing your Entry Key line for volume up to use a different key?  As a test.  If it works with another key, then there would seem to be some issue mapping Alt-.   .  If it doesn't work, then there's some issue with your Entry Key line.

BTW, it's worth telling you (I forgot last time) that I tried to map *just* "." and ","  .  That did not work AT ALL.  But (as another test) I was able to map just Z and X.  All of this was mapping without using modifier keys.  No control, no alt.  Just the raw key.  Z and X worked.  Dot and comma did not work.  I don't know if that helps at all, but it's definitely a difference in behavior.

Good luck!

Brian.
Logged

Castius

  • Citizen of the Universe
  • *****
  • Posts: 562
Re: Custom XML Keyboard Keys - Help me edit resource.xml
« Reply #6 on: November 04, 2015, 11:05:27 pm »

How about we get an shortcut editor?  :'(
Logged
Pages: [1]   Go Up