Discussion in 'MediaPortal 1 Plugins' started by Marcus Venturi, February 18, 2013.
When will this plugin will be part of the MP?
Log in or Sign up to hide all adverts.
I would not hold my breath
@Stéphane Lenclud : I removed Auto3D from my plugins directory and started MePo 1.13 with HID enabled, but my color keys are still not working. In former version the red key opened my recordings, but now nothing happens. Did I miss some configuration step?
'Microsoft MCE' Input Handler was removed from MP 1.13 if you were using it before it should now be using the 'HID' Input Handler.
The shortcut you are mentioning could be missing from our HID key mapping.
Just had a quick look and it looks like both MCE and HID config have the same actions mapped to that Red button. You probably had configured that behavior yourself and you lost your custom mapping when updating to 1.13.
You can either redo it manually through configure or get it back by copying your actions from one XML to the other.
Thank you for your hint. I remapped it manually. The installed MePo 1.13 works now as it should.
But I have a problem running the latest sources. Everytime I start MePo in the debugger I get a FileNotFoundException that the "SharpHidLib" 22.214.171.124 or dependant files could not be found. The files are in the Packages directory. Any clue what's wrong?
I think the build system should copy the package binaries in the exe debug folder. You could put them there yourself if they are missing I guess. Maybe doing a command line build first could fix that for you.
Sorry can't recall the exact name of that command line build script now.
Not at my desk right now.
the problem that I encountered is explained in this post: https://forum.team-mediaportal.com/threads/shortcuter-plugin-v2.121721/page-6#post-1122517
I modified PreFilterMessage:
public bool PreFilterMessage(ref Message m)
if (m.Msg == WM_INPUT)
if (m.WParam == (IntPtr)0 || _backgroundInput)
if (KeyDown != null)
and ProcessRawInput, in this point:
Attached RawInputHook class that I use to intercept keystrokes.
I hope it was useful
Following your hints I found out, that if I register a handler to my own window handle, the RemotePlugins handler is dead, even if always return false in PreFilterMessage.
If I register the handler to the GUIGraphicsContext.ActiveForm handle it works, but I assume in this case the already registered handler from @Stéphane Lenclud is replaced by mine.
If have no clue about the raw input concept...
Is it allowed to register multiple handlers to different windows of the same application?
I found the answer:
We have to rethink the concept...
That's quite surprising. I'm interested to know if the limitation is really one window handle per application/process... or is it per input device.
If not needing to filter the input, maybe a possible solution would be to create another dedicated process for receiving input. Input could be passed into MP via a TCP socket or other communication technique.
Another possibility (which is a bit hacky) is to read the existing registrations before replacing them. This might enable you to manually pass the messages (using SendMessage()) to the previously registered window. One problem with this approach is that you don't ever know when the other window decides to unregister.
Separate names with a comma.
The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users. In reaching this goal we are working every day to make sure our
software is one of the best.
The team works very hard to make sure the community is running
the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us. Care to support our work with a few bucks? We'd really