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

InputHandler - "Interactive" button

Last post 08-24-2010, 12:03 AM by shrap. 2 replies.
Sort Posts: Previous Next
  •  08-23-2010, 12:27 PM 9835

    InputHandler - "Interactive" button

    I would like to handle pressing of "i" button on my remote. I suppose it's the Interactive shortcut so code to handle it should look like this:
    <ShortcutHandler Name="iButtonHandler"
                           Shortcut="Interactive"
                           Handle="true"
                           HandlerStage="Bubbled"/>
    But this does not work for me. Is the shortcut correct? Or is the problem somewhere else? If I put there Shortcut="PageDown" it works correctly for PgDown key. So the rest of the code appears to be ok. Thanks.

    shrap
  •  08-23-2010, 11:11 PM 9838 in reply to 9835

    Re: InputHandler - "Interactive" button

    You can't trap the "Interactive" button using MCML. This was considered a security issue by the Media Center team, so was blocked (the popup menu is used to show whether the page you are accessing is secure or not).

    You may be able to get around this by using a global keyboard hook and consuming the button press before Media Center gets hold of it.

    Cheers,
    Andrew
  •  08-24-2010, 12:03 AM 9839 in reply to 9838

    Re: InputHandler - "Interactive" button

    Hmm, that doesn't seem shrap-friendly ;) I'll use another shortcut probably (like ChannelUp (+) for adding into favourites and ChannelDown (-) for removing - does it sound reasonable?) I wasn't sure how to make the popup menu anyway :) Thanks.

    regards
    shrap
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems