Generic Keyboard/Remote Input Plugin (1 Viewer)

SilentException

Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    ok, try this debug version.. i'm quite sure this is *the* version :)

    i've fixed handling of mapped and unmapped keys, fixed keyboard hook, fixed KEY action behaviour and fixed sound playing.. maybe few others i forget..

    let me know how this works for you..
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    Version 2.1.0.0 (17.12.2008)

    * Unified log entries
    * KEY action is fixed (SendKeys.SendWait)
    * No sounds played if player is playing (standard MP behavior)
    * Win keys are not modifiers anymore (they have standard key behavior, you can't use win+something in key map)
    * Reseting modifier keys is now done on keyup (you can now hold ctrl and press keys, they would all have ctrl modifier)
    * Better handling of keys not mapped through the plugin
    * Better hook behavior (other hooks can now "see" pressed keys too)

    Enjoy!
     

    rodzak

    New Member
    December 19, 2008
    2
    0
    Home Country
    United States of America United States of America
    Need help on installing this plugin...

    Hi everyone. I'm new to Media Portal (just installed it) and I'm trying to get it to recognize my generic HID remote. I downloaded this plugin to map my keys, but I can't seem to get MP to "see" the plugin. I suspect my problem is due to my inexperience with plugins in general rather than this specific one.

    Per instructions, I copied the KeyboardInputPlugin.dll file to my "Team MediaPortal\MediaPortal\Plugins\Process" directory (BTW, the directory "Plugins\Process" didn't exist in "Team MediaPortal\MediaPortal", so I just created it.

    Running the MP Configuration program in Advance mode, I clicked on "Plugins" and scrolled down to the Process section, but...it's not there. Nor is it in any other plugin section, such as Windows.

    Can anyone tell a noob what he's doing wrong?
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Hi everyone. I'm new to Media Portal (just installed it) and I'm trying to get it to recognize my generic HID remote. I downloaded this plugin to map my keys, but I can't seem to get MP to "see" the plugin. I suspect my problem is due to my inexperience with plugins in general rather than this specific one.

    Per instructions, I copied the KeyboardInputPlugin.dll file to my "Team MediaPortal\MediaPortal\Plugins\Process" directory (BTW, the directory "Plugins\Process" didn't exist in "Team MediaPortal\MediaPortal", so I just created it.

    Running the MP Configuration program in Advance mode, I clicked on "Plugins" and scrolled down to the Process section, but...it's not there. Nor is it in any other plugin section, such as Windows.

    Can anyone tell a noob what he's doing wrong?

    The "Process" folder is created by MP as a default folder, and if you were missing it, you either deleted the original folder or you're looking the wrong place!

    On Windows XP the location should be "C:\Program Files\Team MediaPortal\MediaPortal\plugins\process
     

    rodzak

    New Member
    December 19, 2008
    2
    0
    Home Country
    United States of America United States of America
    The "Process" folder is created by MP as a default folder, and if you were missing it, you either deleted the original folder or you're looking the wrong place!

    On Windows XP the location should be "C:\Program Files\Team MediaPortal\MediaPortal\plugins\process

    Pilehave, I feel like an idiot! I did NOT copy the dll to Program Files\Team...etc! For some reason, I had a folder open to Documents and Settings\All Users\Application Data\Team...etc. I just assumed I was looking under my Program Files folder! :eek:

    Sweet plastic Jesus on the dashboard! 30ys experience and a college degree in CS. Go figure...

    Thanks for the reply pal!

    Rod
     

    joz

    Portal Pro
    March 17, 2008
    1,353
    306
    Home Country
    Netherlands Netherlands
    Just installed this plugin but can't seem to get it working.
    My main goal was trying to get My Sleeptimer working but I already figured out some other possible uses for it.

    I'm using a Logitech UltraX Media Remote which is HID based. EventGhost is capturing the buttons and sends out keystrokes and other stuff.
    So what I tried for example was mapping CTRL+ALT+i to a button with EventGhost. Then I mapped this shortcut in this plugin to ctrl+alt+i and send out action remote blue button (or whatever it's called in config, that's what mysleeptimer is set to in config). Does not work. So I decided to go with more basic stuff and trying ctrl+alt+i to map to the same button and let this plugin go to My Music, can't get that to work either...

    Looked around a bit but couldn't find any obvious mistakes. No errors in log either.
     

    rsenden

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

    I just noticed that you did quite some work on the Keyboard Input Plugin; that's the power of open source software ;-). I simply do not have enough time to actively work on this plug-in, so I'm glad somebody else is jumping in.

    I will have a closer look at your changes in the coming days, and test your version of the plug-in after I install the latest version of MediaPortal. I hope that with the improved hook behavior, keyup-events are now correctly picked up for my remote (which was why I reset the modifier keys in the keydown-event instead of keyup-event).

    One question though; I noticed that you removed the Win-key behavior. Although I do not use this functionality myself, I think I once saw a user requesting this feature. So maybe it's a good idea to add a configuration option specifying whether the Win-key should be treated as a modifier key.

    Kind regards,
    Ruud.
     

    joz

    Portal Pro
    March 17, 2008
    1,353
    306
    Home Country
    Netherlands Netherlands
    Excuse me for naggin.Is there anyone that can help me out with my previous post?

    To clarify:
    It is a HID based remote however the buttons that I want to map do not send any recognizable keyboard command (at least as far as I know, maybe HID based is not the right word for this remote, eventhough it does use the HID interface). So I mapped the button with Eventghost (which does recognize the button) to a keyboard command.
    If I don't do this and press the button in the plugin's config nothing will show. If I do map it in eventghost the config can "learn" the command (for example CTRL+ALT+i, which I have set in Eventghost) correctly. However when inside MP nothing happens when pressing this same button. Not with MySleepTimer, but also not with more simple commands such as "back".
    Also tried just with keyboard, pressing ctrl+alt+i, nothing happens... I must be doing something wrong here, others are using this the way I am, it appears.

    p.s.
    I'm also using shortcute'r atm. Tried disabling this (thought it might cause a conflict somehow) but this doesn't solve my problem.

    p.s.2
    Might be important?!?
    This remote uses two instances of a HID driver (not really into this so excuse me for saying something dumb) as it appears to me. Seting up EventGhost means for me adding two instances of the HID plugin and configuring each to have a prefix (which I set to 0 and 1 respectively) so EventGhost can seperate the buttons correctly (some sent out prefix 0 and some 1).
    Could this be causing any of this? I'll try disabling EventGhost altogether (eventhough almost ALL my functionality is currently based on it) and see if it helps...
     

    zhvihti

    MP Donator
  • Premium Supporter
  • October 16, 2007
    20
    0
    Amsterdam
    Home Country
    Netherlands Netherlands
    I am using HIP to send keyboard strokes from my remote.

    With RC3 everything worked perfectly, but now with the latest versions (MP 1.0 and latest plug-in above), sometimes keystrokes get through to MediaPortal uninterpreted.

    E.g. I have volume up set as Ctrl+Shift+9. When watching a movie and I increase the volue, once every couple of clicks, MediaPortal would actually show a 9 in the time line as if I am seeking, which means that the plug-in let through a Ctrl+Shift+9 without interpreting as volume up.

    It DOES happen also when sending the strokes with the keyboard :(

    Any ideas would be appreciated :)

    Thanks.

    PS. I do not see anything in the log that looks abnormal.
     

    Users who are viewing this thread

    Top Bottom