List of keyboard key codes (not shortcuts)? (1 Viewer)

zswman

Portal Pro
April 23, 2006
113
0
Mountain View, CA USA
Area: Media Portal Documentation
MediaPortal Version: 0.2.0.0 RC4$CVS-24.04.2006- 1:00:54,17
(2006-04-24)
MediaPortal Skin: BlueTwo
Windows Version: Windows XP (SP2)
.NET CLR Version: 2.0.50727
DirectX Version: 4.09.00.0904 (9.0c)
Audio Codec: MPEG/AC3/DTS/LPCM Audio Decoder
Video Codec: ATI MPEG Video Decoder
CPU Type: AMD Athlon XP 2200+
Memory: 511 MB
Motherboard: K7S5A (ECS)
TV Card Model: -
TV Card Type: -
TV Card Driver: -
Video Card Model: All-in-wonder Radeon (32 MB)
Video Card Driver: -
Video Card Resolution: 1024x768
Video Render Type: -
Audio Card Model: Santa Cruz(tm) WDM Interface
Audio Card Driver: -
Synopsis::

I have searched everywhere and can not find a simple mapping of keyboard keys to the codes which represent them. I am not trying to find the keyboard/MP-function shortcut mapping, I am trying to find the actual code for a keyboard press for any given key.

What I would like to do is map a keyboard key to a remote key - it seems to be very do-able in the Remote portion(s) of configuration.exe using Action -> Key Pressed (i.e., no third-party or intermediate software e.g., Girder is desired or seems to be necessary for this). There are two codes to be entered here - where can I find a listing? I need to be able to map TAB and SHIFT-TAB.

A bonus would be the code for the Web Browser plugin so it would only activate under Condition -> Web Browser. Web Browser is not an option in the dropdown, but the XML files that contain these mappings seem to use a unique code that could (probably) be entered manually if I new the code for the Web Browser. Is there a list of those as well?

Thanks in advance for any help.
 

zswman

Portal Pro
April 23, 2006
113
0
Mountain View, CA USA
Thanks, Trosty, but that didn't get it - I had seen that thread and (previously) looked at those mappings. Those mappings give you the KEY/ MP-Function relationship, but what is important to me is the KEY/ Keycode relationship.

Maybe mPods response is most telling(?)

Btw, plans are that you can map all like you want somewhen between the 0.2 and the release after that.

I checked keymap.xml and it gives, for example, F6 = 77 - i.e., it SEEMS like you can use the remote mapping in configuration.exe to map ACTION -> KEYPRESS -> KEY=77 to map a particular remote button into the issuance of F6 - that is my end goal.

Two problems with that, however: (1) I can not make that work as I can not find documentation as to what goes in the KEY fields for KEYPRESS. The show up in any given remote.xml file as cmdkeychar and cmdkeycode, respectively, but you can not enter characters or hit the F6 button to provide cmdkeychar. I have also tried entering the code for the remote key in cmdkeychar, but that doesn't seem to work either. I have tried modifying the XML file directly, and that didn't work. (2) Only those keyboard keys that have MP (strictly) functionality defined are in keymap.xml. I need, for example, the TAB key.

My bottom line is to be able to do SOMETHING with the content window the Web Browser gives me. If I had the F6 key and TAB keys defined on the remote, I could move from frame-to-frame and link-to-link, then use OK to navigate to that link. If someone knows a way to do THAT through the remote, that would help me at least solve that problem.

This seems like it should be easy, I am obviously missing something - guess that's why I'm listed as a "numpty."

What is needed is documentation that describes the relationship of (keyboard keys & remote keys) = (cmdkeycode / cmdkeychar). If I understood the paradigm used in MP I could generate the Wiki page, at least for the currently defined keys.

Finally, I did seem to find the code for the Web Browser in Strings.xml (it seems to be 4000). When you try to edit a remote.xml file in conproperty=4000, however, MP no longer recognizes your "custom" remote.xml, deletes it (I am guessing it generated an error when parsing the file) and reverts to using the "default" remote.xml

:(
 

Users who are viewing this thread

Top Bottom