Generic Keyboard/Remote Input Plugin (1 Viewer)

Lyfesaver74

Public Relations
  • Premium Supporter
  • September 25, 2010
    1,544
    1,122
    Texas
    Home Country
    United States of America United States of America
    Did u put the dll in the right folder? in the Process folder? I didnt and a lot of buttons did not work until I fixed it. Also, MP has the option to show the Info when u press "enter" as opposed to launching the video
     

    enanno

    Portal Member
    April 6, 2011
    29
    5
    Home Country
    Spain Spain
    Did u put the dll in the right folder? in the Process folder? I didnt and a lot of buttons did not work until I fixed it.

    mmmm... I'm coming home right now. I'll check it out, thank you! :p

    Also, MP has the option to show the Info when u press "enter" as opposed to launching the video

    REALLY??? I haven't seen that option... can you give me some light, please? :D
     

    enanno

    Portal Member
    April 6, 2011
    29
    5
    Home Country
    Spain Spain
    I got it! I had the General HID disabled in the MP's Configuration's Remote section.
    However, I still don't know how to open the Action Menu or the IDMB info instead of directly playing the item when I push ENTER button on my remote.
     

    Lyfesaver74

    Public Relations
  • Premium Supporter
  • September 25, 2010
    1,544
    1,122
    Texas
    Home Country
    United States of America United States of America
    Enanno: That option is in Moving Pictures config, in the 'Behavior' section. As for your other problem, I am glad you got it working, but as you know we have the same remote and I have NEVER in all my MP had any boxes ticked in the remote section of MP config
     

    Markos

    Portal Member
    September 7, 2008
    11
    2
    Home Country
    Czech Republic Czech Republic
    I know it's quite long since this has been discussed but I know why the hook sometimes stops working. When passing delegate to native functions (SetWindowsHookEx in this case), .NET's garbage collector does not know that it is still being used and collects the delegate. This can be avoided by storing reference to the delegate (even if it is not used in code anymore).

    I have rewritten the keyboard hook so this should not happen anymore. I would be glad if original author included this fix in his project so all new versions contain the fixed code.

    It is compiled against the 1.1.3 version of Mediaportal.

    As I am not the original author, I did not increment version nubmer to not cause confusion.

    Markos
     

    Attachments

    • KeyboardInputPlugin.zip
      1.2 MB

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    I know it's quite long since this has been discussed but I know why the hook sometimes stops working. When passing delegate to native functions (SetWindowsHookEx in this case), .NET's garbage collector does not know that it is still being used and collects the delegate. This can be avoided by storing reference to the delegate (even if it is not used in code anymore).

    I have rewritten the keyboard hook so this should not happen anymore. I would be glad if original author included this fix in his project so all new versions contain the fixed code.

    It is compiled against the 1.1.3 version of Mediaportal.

    As I am not the original author, I did not increment version nubmer to not cause confusion.

    Markos

    Interessting. Can this be confirmed by someone?
     

    Lyfesaver74

    Public Relations
  • Premium Supporter
  • September 25, 2010
    1,544
    1,122
    Texas
    Home Country
    United States of America United States of America
    @ 1stdead: I dont know what all he means so I am weary of installing it.
     

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    Sometimes in win7 you lose the bindings you defined in the plugin to the remote. IE. you have to restart your pc or mediaportal to get the remote working again.
     

    Lyfesaver74

    Public Relations
  • Premium Supporter
  • September 25, 2010
    1,544
    1,122
    Texas
    Home Country
    United States of America United States of America
    @ 1stdead: Thanks for helping to clear that up =) as this has NEVER happened to me on any of the systems I have put together, I am not the best person to be testing this.... But KUDOS to Markos for working on it =)
     

    Users who are viewing this thread

    Top Bottom