Limitations of USB-UIRT implementation - Like to improve it. (1 Viewer)

GhoSe

Portal Pro
December 17, 2007
334
47
Berlin
Home Country
Germany Germany
Hello,

I'm currently starting to configure my HTPC after a long time of hardware work. The last days I tried to configure the steering with my Remote and USB-UIRT as comfortable as possible, but I still didn't found a good solution.

Problem:
In the configuration of the USB-UIRT you can assign IR-Commands to MediaPortal-Action-Events. So far, so good, BUT there are several Actions, that are generally the same, but have other ids or names in the different windows of MediaPortal. Due to that you can bind the same Keyboard-Key to differenz Action based on window-conditions. That's a good solution for Keyboard control, but that feature is not available for USB-UIRT control, right?

Possible Solution:
I like to implement a IR-Command to Keyboard-Key binding in the following way, to keep it simple:
- add all MP standard keyboard shortcuts in the same listbox as the actions are in. Syntax: KEY_*
- simulate this keys by using SendKeys (This way the standard conditional action handling from MP is used and you do not have to configure this at different places.)

What do you think about this? Maybe you can give some hints, why that could make no sense, before I start :)

Best regards,

GhoSe
 

and-81

Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    You can do all that with IR Server Suite.

    If you want to use the MediaPortal Input Mapper, then use the MP Control plugin in IR Server Suite.

    If you want to send keypresses to MediaPortal then use Translator in IR Server Suite.

    You can find the latest version in my signature.

    Let me know how you go.

    Cheers,
     

    GhoSe

    Portal Pro
    December 17, 2007
    334
    47
    Berlin
    Home Country
    Germany Germany
    Ah ok it looks very flexible, good work. I'll test it. But I already made the changes, that I've planed, last evening, because I couldn't wait :) Anyway, I like to get familiar a bit with the MP sourcecode, because I plan to help on developing in the future, so it's no problem if I've done some redundant work :)
    But maybe my changes could help other "newbies" (like me to atm :)) to get a comfortable configuration quite fast.
    I added Keyboard events for every key that is conditionally bound in the standard configuration of MP. So you can select this new events in the learning form of usb-uirt, like the other ones. In the background it is sending the key-commands via SendMessage.
     

    and-81

    Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    If it got you familiar with the workings of MediaPortal and you feel you can contribute to the project then it's definitely not a waste of time.

    Good stuff.

    Cheers,
     

    GhoSe

    Portal Pro
    December 17, 2007
    334
    47
    Berlin
    Home Country
    Germany Germany
    I added the changes to the patch section on sf. So you could decide, if it makes sense to include it to the source. I would be glad, if I see it in some of the next svn builds :)
     

    Users who are viewing this thread

    Top Bottom