The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

MCE Remote button intercept code

Last post 01-07-2010, 11:20 AM by AndyC. 3 replies.
Sort Posts: Previous Next
  •  12-31-2009, 3:02 PM 9517

    MCE Remote button intercept code

    Hi,

    I am trying to intercept the MCE remote messages and, depending on my programs needs, stop them reaching Media Center or allow them, at my choice.

    I have successfully built a .net app that sees all keypresses (when it has the focus)...but I can't seem to "eat" the messages at all!

    For example, if I click "Recorded TV", my application is regfistered for and sees the message, but even if i skip passing the message onto the base wndproc, Media Center still auto-launches and navigates to Recorded TV (or just navigates there if already open).

    Does anyone know how I stop the message getting to and being acted on by Media Center?

    Thanks.
  •  01-03-2010, 10:42 PM 9518 in reply to 9517

    Re: MCE Remote button intercept code

    How are you currently intercepting the messages?

    Cheers,
    Andrew
  •  01-06-2010, 10:59 PM 9519 in reply to 9518

    Re: MCE Remote button intercept code

    first, I'm registering for WM_APPCOMMAND and WM_INPUT messages from the remote device class then I'm using an override of wndproc and processing the message.
    I've tried NOT pushing the message to mybase, but that seems to have no effect on Media center picking up the darn message!
  •  01-07-2010, 11:20 AM 9520 in reply to 9519

    Re: MCE Remote button intercept code

    So you're using the RawInput API?
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems