NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 562 563 564 565 566 … 1231 Next »
Looking for some help with KeyMappings xml code

 
  • 0 Vote(s) - 0 Average
Looking for some help with KeyMappings xml code
charleski
Offline

Junior Member

Posts: 11
Threads: 3
Joined: Aug 2006
#1
2006-09-01, 06:35 PM
I'm trying to get the remote from the KWorld DVT300U working with gbpvr.
This remote is not MCE compatible, but works using a similar enough interface that I was able to work out what it's doing. I've discovered how to reprogram the remote's interface to report any arbitrary scan code for any of the remote keypresses.

Now, I'd like to alter the keys that gbpvr responds to. Clearly that means editing the xml in the KeyMappings directory. I have a couple of questions though:
1) Can you specify a command twice with different keys? I see that the standard Main.xml has the following lines:
Code:
<command name="MAIN_VOLUME_UP" key="Add"/>  
  <command name="MAIN_VOLUME_UP" key="PageUp"/>
So both keys will work to increase the volume? I just want to check this, as I would like to add a bunch of mappings for unused keys (the high-value Fkeys) while keeping the keyboard interface.
2) How do I specify something like <shift><ctrl>F15? I set my remote to output that scan code and Show Key reports +^F15 when I press the key. But inserting
Code:
<command name="GUIDE_UP" key="+^F15"/>
into the xml doesn't produce any effect.

It's not critical, as I could just reprogram the remote to use more standard scan codes, but I'd like to make sure it will only have an effect on gbpvr to avoid any conflicts.
Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#2
2006-09-01, 06:56 PM
I know that you can specify multiple keys for the same command. You can not do the converse. That is, a given key can only map to one command. I don't know the answer to the second question.

Jeff
charleski
Offline

Junior Member

Posts: 11
Threads: 3
Joined: Aug 2006
#3
2006-09-01, 07:28 PM
Jeff Wrote:I know that you can specify multiple keys for the same command.
Thanks. I thought so, but just wanted it confirmed to make sure the difficulties weren't caused by the program only reading the first key assignment.

Quote: You can not do the converse. That is, a given key can only map to one command.
Am I right in thinking that only applies within each individual screen? (I.e. the TV Guide page, the DVD player, etc). Can I map a single key to subtitles in the DVD player and EPG in LiveTV? I'm thinking the answer is yes, but have learned it's best to make sure to avoid wasting time on obvious errors.

Thanks for the help.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#4
2006-09-01, 07:37 PM
Quote:Can I map a single key to subtitles in the DVD player and EPG in LiveTV?
Yes, in theory.
charleski
Offline

Junior Member

Posts: 11
Threads: 3
Joined: Aug 2006
#5
2006-09-01, 10:08 PM
sub Wrote:Yes, in theory.

Any info on how to specify extended shift codes? Sorry to be a pain, but it would make the solution I'm planning simpler.

I see a few people have posted in the Hardware forum about getting the KWorld device working in gbpvr, probably because it's so cheap. I'd like to work out a solution that has as few possibilities for conflicts as possible.

I could simply post a .reg file that would map the cheapie KWorld remote to scan codes that are already defined as standard in gbpvr, but the devil in me wants to define the reported keys as codes that won't muck up anything else. Obviously it would be a lot easier with the source, but I fully understand why you don't want to release it (buggers like me would promptly alter it beyond recognition, I've been there before Smile )
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#6
2006-09-02, 02:57 AM
Quote:Any info on how to specify extended shift codes? Sorry to be a pain, but it would make the solution I'm planning simpler.
I've never tried a key combination like <shift><ctrl>F15 so I've got no idea if it'll work or not. Did you check the code using the included ShowKeys.exe?

Quote:I could simply post a .reg file that would map the cheapie KWorld remote to scan codes that are already defined as standard in gbpvr, but the devil in me wants to define the reported keys as codes that won't muck up anything else.
If I were you I'd probably avoid modifying the keymapping.xml files. These change nearly every release, and you'll continually be having to fix them up. You'd be much better served by getting the remote to produce the same scan codes as an MCE remote (or hauppauge remote keypresses if possible).
danielbs
Offline

Junior Member

Posts: 7
Threads: 1
Joined: Mar 2007
#7
2007-04-09, 03:33 PM
Hi

I have no way of configurating my remote so I chose to do the tedious task of modifying the Key Mappings XML to suit the existing key codes.

sub Wrote:Did you check the code using the included ShowKeys.exe?

ShowKey.exe displayed a few keys to be +^S and some even +^%B.
But it seems that GBPVR either ignores these keys or treats them just as ^ so both ^F and +^F buttons have the same effect.

Is the Syntax displayed by ShowKeys.exe the syntax expected in the Key Mappings XML?

Thanks
Daniel
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#8
2007-04-09, 05:22 PM
danielbs Wrote:Is the Syntax displayed by ShowKeys.exe the syntax expected in the Key Mappings XML?
Yes, though I'm fairly sure it wont let you combine multiple ctrl/alt/shift modifiers in one go (ie "+^S"), which is probably why its not working for you.
danielbs
Offline

Junior Member

Posts: 7
Threads: 1
Joined: Mar 2007
#9
2007-04-10, 06:02 AM
sub Wrote:Yes, though I'm fairly sure it wont let you combine multiple ctrl/alt/shift modifiers in one go (ie "+^S"), which is probably why its not working for you.

I tried HIP, but it did not work, since GBPVR got both the original key stroke and the message from HIP.
Even keyboard scan code switching will not help since it does not effect modifiers keys.

It means that I cannot use GBPVR with my remote.

Are there plans to resolve this in a future release?
Can I write a plugin to resolve this issue, or is it internal to GBPVR?
(I didn't read about plugins enough yet)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,723
Threads: 767
Joined: Nov 2003
#10
2007-04-10, 06:18 AM
Quote:Are there plans to resolve this in a future release?
To be honest, I'm not aware of anything that needs fixing, so no I'm not planning on resolving anything.. The current scheme has worked fine with every remote I've tried.

Your posts here havnt clearly highlighted to me what you think the problem is. For example, if you'd modified one of the keymapping xml functions to '^S', then pressing Ctrl-S on the keyboard should trigger that key handling. If your remote is not correctly faking the Ctrl-S keyboard events, then this is something you'd need to take up with whoever provides the software for your remote.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  pin code for settings menu? HYBRiD.BLiNG 2 1,979 2010-04-20, 05:27 PM
Last Post: sub
  EPG text font code page support rooomish 14 4,269 2009-11-17, 07:19 PM
Last Post: woa
  Whats the Pin Code spencer 3 2,404 2009-11-05, 08:52 PM
Last Post: spencer
  Code for SAA7130 TV Card DRL 5 4,658 2009-08-27, 07:10 PM
Last Post: DRL
  Time code thinks seconds are minutes JBreits 8 2,579 2009-03-05, 04:45 PM
Last Post: sub
  keymappings changes not working johnsonx42 11 3,378 2009-01-26, 04:59 AM
Last Post: johnsonx42
  Keymappings tweaks SLR_65 0 1,044 2009-01-03, 09:53 PM
Last Post: SLR_65
  small bug in KeyMappings acglj 0 1,015 2008-12-08, 11:19 PM
Last Post: acglj
  Problem Changing My Keymappings BamBam 2 1,306 2008-10-25, 05:21 PM
Last Post: BamBam
  Error code : 80004005 kindt nick 2 1,518 2008-05-14, 07:26 PM
Last Post: kindt nick

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode