Increase the number of key that can be used (1 Viewer)

M

metalmasterx

Guest
Hi *,

first of all, I want to thank anyone working on this fantastic project. GREAT WORK!!!!!!!

No to my (little) feature request. Although it's not really a new feature but an extension of an existing one...

I have a USB remote control from shuttle (PN31, see http://eu.shuttle.com/en/DesktopDefault.aspx/tabid-123/554_read-1622/). It is a great one because you don't need a driver, it's just like a combination of a wireless keyboard and a mouse in one control.

Of course, not all keyboard keys are available on the remote, but just a subset of the most commonly used ones (0-9, enter, backspace, esc, tab, volume+, volume-, pageup, pagedown). Additionally, it features a some of the "multimeda keys" that are also available on modern keyboards.

It would be very nice if I could configure them in MediaPortal! Otherwise, they are quite useless... If I press these buttons in the keys configuration dialog, the keystroke is recognized, but a weird special character is displayed. Also the ".", "-", "+" keys available on my remote (and my keyboard as well!!!) are not recognized correctly.

Technical note:
In the .NET System.Windows.Forms.Keys enumeration (see http://msdn.microsoft.com/library/d...tml/frlrfSystemWindowsFormsKeysClassTopic.asp), the following keys are the ones that I meant:

MediaTrackNext
MediaPlayPause
MediaTrackPrevious
MediaStop
Decimal

Other people might want to use e.g.
BrowserBack
BrowserSearch

or other "special" keys on the keyboard.

All these keys are recognized in the keys configuration dialog, but displayed as some special character. And, they cannot be used when they are configured (just ignored).

Do you see a chance to include these keys???

Technical proposition: I think (correct me if I'm wrong) in .NET any keystrokes are handled using this Keys enumeration mentioned above.

Why not use the following pieces of c# code to convert between a key and its string representation that can be used in the xml file and in the config dialog?

#1: key->string
System.Windows.Forms.Keys key = Keys.MediaTrackNext;
string stringRepresentation = key.ToString();

#2: string->key
string stringRepresenation = "MediaTrackNext";
System.Windows.Forms.Keys key = System.Enum.Parse(typeof(Keys), stringRepresentation);

By this, you could avoid a "hardcoded" list of supported keys and any key you can think of could be used and configured. (Maybe it's just rubbish that I'm writing, correct me if I'm wrong!)

Thanks for reading this LOONG post. What do you think?

metalmasterx
 

Tainted

Portal Member
February 12, 2007
20
0
yeah I'm diggin up old post from the grave!!

Did anyone ever come right with this. Sitting with the exact remote trying to configure it!
 

mbuzina

Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    Country flag
    Did you enable the General HID Device on Remotes? This will capture the common Multi-Media Keys and use them "usefully". I am not sure if you can reconfigure them, but I know that they work from my keyboard.
     

    Users who are viewing this thread

    Similar threads

    Many thanks for your fast response. Hopefully I'll get to work through these items in the next few days. Kind regards.
    Many thanks for your fast response. Hopefully I'll get to work through these items in the next few days. Kind regards.
    Hi, I'm new to the world of HTPC and Media Portal but I've decided to give it a go since my Pioneer DVR-LX60D PVR failed and is...
    Replies
    2
    Views
    771
    Good work guys!
    Good work guys!
    We are proud to present MediaPortal 2.2.1 After the release of MediaPortal 2.2 Final the team focussed on improving usability and...
    Replies
    1
    Views
    3K
    MPExtended (Mobil access) for MP2 only for TV access It's available and properly working since beginning of this year... I've used it until I switched over from DVB-S to SAT>IP in Spring 2018 where such things are no longer necessary at all.
    MPExtended (Mobil access) for MP2 only for TV access It's available and properly working since beginning of this year... I've used...
    We are proud to present MediaPortal 2.2 Final Since the recent release of MediaPortal 2.2pre, we fixed some minor things. We now...
    Replies
    11
    Views
    6K
    We are proud to present MediaPortal 2.2 Pre-Release It has been some time since last release, but we were intensively working on the implementation of new features and some fundamental changes in the core of MediaPortal 2. As a result, we proudly present the next major release of MediaPortal 2 in version 2.2. MediaPortal 2.2 is a...
    We are proud to present MediaPortal 2.2 Pre-Release It has been some time since last release, but we were intensively working on...
    We are proud to present MediaPortal 2.2 Pre-Release It has been some time since last release, but we were intensively working on...
    Replies
    0
    Views
    3K
    Thanks for the reply. I prefer not to touch anything. I leave things as they are. Because I use the PC both with headphones and with the Home Cinema system. I don't wish there were any problems if I change the audio renderer. Also because if in MediaPortal Audio Renderer I change the settings of the exclusive mode I should remember to...
    Thanks for the reply. I prefer not to touch anything. I leave things as they are. Because I use the PC both with headphones and...
    Introduction This allows you to easily change your active Windows audio (playback) device using a context menu which you can show...
    Replies
    83
    Views
    25K
    Top Bottom