(original thread) MCE Replacement Plugin v1.0.0 (1 Viewer)

Status
Not open for further replies.

and-81

Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    mbrandwood:

    I haven't tested with 0.2.0.4 in a long time. The plugin is compiled against 0.2.1.0, so I would try it with that.

    I'll try compiling it against 0.2.0.4 and see what happens, maybe I'll end up with three versions! :)

    stryker:

    There are a couple of IR schemes that it wont reproduce, I don't have a list, but if people supply me the code type of the equipment they use that doesn't work then I can make a list. Looks like NECx2 is one, and I know IRDA codes wont work.

    Cheers,
     

    nfox

    Portal Pro
    August 22, 2006
    163
    24
    London
    Home Country
    United Kingdom United Kingdom
    Hi there,

    I hope it's OK to ask a couple of questions regarding your Message Plugin here.

    First of all, I should point out that this is the first time I've tried anything like this, and have no idea what I'm talking about. If I've read things right, I think it should be possible, but I have run into a problem and have no clue as to how to proceed.

    To summarise: I want to send a Windows Message to MP from another app that will cause MP to go to MyTV.

    I have a way of sending the message, and have confirmed that I can get other apps to respond to messages.
    I have used Winspector to check the class name of MP - WindowsForms10.Window.8.app.0.3ce0bb8 - which looks nasty, but when trying to send a message I get an error complaining about not being able to find the window if MP is not running, and no error if it is running, so that seems good.
    I know from the readme.txt included with the Message Plugin that the message should be 32768, the WParam should be 24, and the LParam should be 70 (or possibly 37).
    I don't know what the Window Name should be, but "MediaPortal" doesn't seem to be it.

    I have checked out the config for the Message Plugin, but really am not sure what, if anything, I should be configuring.

    I have tried various different options for LParam, including a few of the more obvious navigation commands, but MP responds to nothing.

    So, I guess my questions are...
    1. Can I do what I want, or am I on completely the wrong track?
    2. Is the Class Name of "WindowsForms10.Window.8.app.0.3ce0bb8" correct?
    3. What should the Window Name be (if anything)?
    4. Are the other parameters actually correct?
    5. What, if anything, do I need to configure in the Message Plugin?
    6.. Anything else you can suggest?

    So, rather more than a couple of questions I'm afraid. I hope it makes sense, and many :D in advance for any help you can provide.

    Cheers

    Neil
     

    and-81

    Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    I hope it's OK to ask a couple of questions regarding your Message Plugin here.

    Hi Neil,

    No problem. The Message Plugin is just a section of the source code from the MCE Replacement Plugin put into a plugin of it's own. So anything that effects the Message Plugin will have implications for the MCE Replacement Plugin.

    1. Can I do what I want, or am I on completely the wrong track?
    You seem to be on the right track to me. But can I ask what software you are trying to use to send the message? There are configuration files for HIP and Girder available, so I assume you're using neither of those?

    2. Is the Class Name of "WindowsForms10.Window.8.app.0.3ce0bb8" correct?
    Yes, that's the same Class Name I get when I check it here.

    3. What should the Window Name be (if anything)?
    Should just be "MediaPortal" as far as I can tell.

    4. Are the other parameters actually correct?
    The Message should be 32768, this is true.
    The WParam should be 24, this is also true.
    The LParam should be the Remote button you want to simulate, and that looks right too. Either 37 or 70 depending on the desired function in this case.

    All these numbers are in Decimal. You may need to check if your software expects Decimal or Hexadecimal.

    5. What, if anything, do I need to configure in the Message Plugin?
    The Message plugin should already be set with the right button mappings to achieve what you are after, so there should be no need to change anything in the Message Plugin configuration.

    6.. Anything else you can suggest?
    Maybe try the MCE Replacement Plugin, it has the Message Plugin built in and will let you do a lot of other things with the message received.

    Also, consider testing this with either HIP or Girder and see if it works. If it does then you know it's something wrong with your software, if it doesn't then there is something else at work.

    Hope that helps.
     

    nfox

    Portal Pro
    August 22, 2006
    163
    24
    London
    Home Country
    United Kingdom United Kingdom
    Aaron

    Thanks for being so quick and comprehensive in your reply.

    From what you say it seems like I'm doing basically the right things, which is kind of a shame, I was hoping it was going to be something really obvious and simple to fix.

    I've been using a command line app to do this, message.exe, which I picked up from the Meedio forum a year or two ago. I have successfully used it in the past to send messages to Meedio, I will try with another app if I can find some relevant parameters. It works like so:

    message.exe -C classname -N windowname -M messagenum -W wparam -L lparam

    I am also trying another command line app I found on the Sage forum called SendMessage.exe, but I can't seem to get that to work with anything right now.

    From the lack of errors, it seems like a message is being sent, but not received. I will try using the MCE Replacement plugin and see what happens, and if that fails I will brave the world of HIP and Girder, and see where that gets me.

    I suspect I may be back here before long.

    Cheers - Neil
     

    Rhys.Goodwin

    Portal Pro
    November 20, 2006
    336
    1
    Home Country
    New Zealand New Zealand
    Hi, Just a quick question, I'm having a problem with the "different remote" option, it all works fine except the arrows buttons up,down,left,right. I can train them in the setup but they don't respond when I press them on the other remote. All? other buttons seem to work fine. I've tried with 2 different remots.

    Thanks for your awesome effort with this plugin Aaron.
     

    and-81

    Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    "Different Remote" converts the codes for your other remote into the codes that the MCE remote would produce, it then passes that code through the input mapper. So if you have removed the replacement driver mappings for the MCE remote then you will lose them on the "Different Remote". Does that make sense?

    Try reseting to the default mappings on the MCE remote button configuration and see if that fixes the different remote. I should probably allow seperate mappings for the different remote section, but in the future I will combine the two. But that is some time off, becuase I'm going away for christmas :)

    Hope that helps.
     

    Rhys.Goodwin

    Portal Pro
    November 20, 2006
    336
    1
    Home Country
    New Zealand New Zealand
    Ah legend! Returned the settings to default. All sweet. Fantastic! Now it doesn't matter which remote you happen to pick up they both do the same things. Thanks again Aaron. Have a great christmas.
    Cheers,
    Rhys (Auckland, NZ)
     

    Ryan711

    Portal Member
    September 11, 2006
    18
    0
    Home Country
    United States of America United States of America
    Ok I have a problem, I installed the plugin with the replacement driver but when I try to learn external ir codes to control set top boxes it won't work. I've tried to set them up on my coolsat 5000 and audio receiver. It will learn the code, but when I go to test it, all the blasters will do is flash red. I've tried putting it directly in front of the device i'm trying to control, and I've re-learned the a bunch of times. Any Suggestions
     

    Red5

    Portal Member
    November 17, 2006
    7
    0
    Home Country
    United Kingdom United Kingdom
    MCE2005 Remote + HIP = Help!

    I broke down today and bought a Microsoft Remote (MCE2005 version) because I'm fed up with my AverMedia remote (99% of programs know nothing about it, wheras 99% of programs will work with the Microsoft remote).

    I got MediaPortal working great using the "replacement drivers" and the "MCE replacement plugin" (great work!). However I'd also like to be able to use HIP so I can use the remote with other stuff as well... I changed the Plugin to use "Message Mode" and loaded the supplied Configuration file into Hip, but MediaPortal completly ignores the remote when I do this :(

    Sorry if this has been asked before, but the search funtion isn't throwing up anything obvious/useful and I'm not reading through a 38 page thread for it! Any help would be greatly appreciated.

    P.S. does anyone know how to set HIP up so I can use the remote as a "mouse" in windows? I could do this with my AverMedia remote and it was probably the most useful function.

    :D
     

    rdhillon

    Portal Member
    October 1, 2006
    26
    0
    Home Country
    United States of America United States of America
    What version of MP are you using? I am having this exact same problem. I'm using the latest 0.2.2 load.
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom