Generic Keyboard/Remote Input Plugin (1 Viewer)

cewillis

MP Donator
  • Premium Supporter
  • August 27, 2010
    327
    13
    Home Country
    United States of America United States of America
    I have since learned, it seems, that it's better to leave the OK(enter), and the directional arrow keys undefined by removing them from the list in KeyboardInputPlugin, and leaving them for OS interpretation. Same for mouse buttons and movement control on my remote. All of these 'undefined' key still work as expected.

    It would, however, be nice to have the i (info) key bring up the context menu for the item currently in focus in MP. Since it doesn't, I can move the mouse cursor over the focus item, and then bring up the context menu. The latter way is pretty primitive.

    Cal
     

    trepamuros

    Portal Pro
    December 2, 2008
    71
    2
    Home Country
    Spain Spain
    Hello,

    After reading and make some tests, I'm not sure if this plugin can do what I want.

    I've installed Audio Renderer Changer plugin, which is a process plugin to switch the Windows audio renderer on the fly (good if you want to switch HDMI / SPDIF audio quickly). This plugin activates only by a keypress: By default is Shift+Ctrl+k, but can be defined by the user. The plugin doesn't have a context menu, nor a window ID to be called.

    The question is: How can I set a button of my original MCE remote to send (or emulate or simulate or whatever) the key defined on that plugin? In other words, how can I assign a keypress (i.e. shift+ctrl+k) to a button on the remote?
     

    Thor2605

    MP Donator
  • Premium Supporter
  • April 2, 2009
    1,640
    184
    Home Country
    Germany Germany
    AW: Generic Keyboard/Remote Input Plugin

    I think this should work...

    I didn't programm that, but maybe it's a standard feature of MP ;)
     

    trepamuros

    Portal Pro
    December 2, 2008
    71
    2
    Home Country
    Spain Spain
    :sorry: to come back with this, but I have tried everything with no luck. Can't understand how to do this apparently simple thing.

    I have an original MCE remote.
    I want to map a hotkey into a remote button to activate AudioRendererChanger plugin (which toggles audio device). The hotkey can be user-defined (by default is Crtl+k), I tried to simplify by setting the hotkey to "¡" (not used for MePo). Of course, if I use the keyboard the plugin activates correctly. Troubles come when I try to set the remote to do that.

    There should be a stupid, simply way to do this but I can't find it.

    Tried the standard remote mapping of MePo configuration: Well, no way to assign a button for the Audio plugin. The audio plugin is not among the "actions" nor the "windows" inside the mapping options. Can't create a new "ACTION" on "Keys and sounds" menu, can't assign the keypress to an existing action (do nothing).

    Tried Generic Keyboard/Remote Input Plugin: First, I open the default keyboard.xml file inside "MCE Remote" folder, but can't assign a button for the audio plugin, nor assign a given keypress to a button as the audio plugin is not listed under "actions" nor "windows" (I'm pretty sure it's enabled).
    When I create a new mapping, only a few remote buttons are recognized: Vol+/-, numbers and some others, not much. I want to map the "Record" button, but is not recognized when I press it.

    So please, can anybody help me? A stupid-proof tutorial about how to map any given keypress to the MCE remote will be welcome and greatly appreciated.

    Thanks in advance.
     

    rsenden

    Portal Pro
    August 22, 2006
    88
    108
    Rotterdam, NL
    Home Country
    Netherlands Netherlands
    Hi,

    I'm unfamiliar with both the Audio Renderer Changer (ARC) Plugin and the original MCE remote, but I'll try to answer some of your questions.

    I have an original MCE remote.
    ...
    When I create a new mapping, only a few remote buttons are recognized: Vol+/-, numbers and some others, not much. I want to map the "Record" button, but is not recognized when I press it.

    KeyboardInputPlugin (KBIP) only intercepts regular keypresses. Most MCE remote clones 'emulate' a regular keyboard for most or all button presses, so you can use KBIP to map those buttons to MediaPortal actions and such. Seeing your description, I guess the original MCE remote doesn't emulate key presses for most buttons. As such, this remote is not supported by KBIP unfortunately.

    Tried the standard remote mapping of MePo configuration: Well, no way to assign a button for the Audio plugin. The audio plugin is not among the "actions" nor the "windows" inside the mapping options.
    Although not related to KBIP (and as such replies should go to the ARC thread and/or PM); if I remember correctly the standard remote mapping contains a 'Key Pressed' action. Depending on how the ARC Plugin detects keystrokes, you may be able to map a remote button to a 'Key Pressed' event that is in turn handled by the ARC Plugin.

    Another option is to map a remote button to the ARC window, if it indeed has a window as described earlier in this thread. KBIP allows you to select custom plugin windows in the setup screen, the standard MP remote mapping unfortunately doesn't AFAIK. However, you could try to manually edit the corresponding XML file to add the correct window. First map the button that you want to assign to ARC to an existing MP window using MP Setup, then edit the XML file (%AppData%\Team MediaPortal\MediaPortal\InputDeviceMappings\custom\Microsoft MCE.xml from the top of my head) by changing the cmdproperty attribute for that button to the window id that was posted earlier.

    Note that this is unsupported and may or may not work, and may cause the MP Remote setup screen to cease functioning or delete your customized mapping file. As such, first set up all other buttons of your remote, then try the above, and make a backup of the original and modified file.

    Kind regards,
    Ruud
     

    trepamuros

    Portal Pro
    December 2, 2008
    71
    2
    Home Country
    Spain Spain
    Thank you very much for the answer.

    I was guessing my MCE remote doesn't send emulated keystrokes. Several clones do.

    I've tried to create a new KEY PRESSED item on the "Keys and sounds" menu and assign the plugin hotkey to it, then map the Record button to the item, but no luck (does nothing).

    In addition, I didn't find a way to assign a remote button to the ARC plugin Window ID (6996) in MePo setup. No such Window ID is listed on the "window" list, neither in the standard remote setup nor in the GenericKeyboard/Remote Input Plugin.

    I'll keep trying. Thanks again.
     

    Hemin

    Portal Pro
    December 29, 2006
    59
    4
    Home Country
    Spain Spain
    Hi, I need some help to enable the play/stop multimedia buttons. I've a generic remote control that emulate a keyboard and multimedia keys. Yesterday in the morning all was working like i want, I've installed some skins and then play/pause button don't want to work. In MyTV all buttons are working but play/pause, in MyVideos remote control seems "death", no keys are available, back, stop, play, etc. I have to move the mouse to the top bar and press "back".

    I've uninstalled the skin (streamedMP) but the remote still don't work. It's possible that the skin changes something that "break" the play/stop key?

    Thanks

    Edit: I've activated the Generic HID remote and multimedia keys come back again
     

    Users who are viewing this thread

    Top Bottom