Context menu with MCE remote
#1
I have a problem with my MCE remote. I can press the info button and it will go into context menu for a movie of mine but I have to use the remote mouse pad and move cursor over the file and then press info. What I want to do is just use the arrows select the movie and press info. I dont want to have to use the remotes mouse.A script for it maybe. Any help would be great. Thanks
Reply
#2
That's probably because the Info ("i") button on that remote is hard-wired as a right mouse button. I have the same issue with my VRC-1100 (wiki) remote. So, when you point the mouse cursor on an item and click "i", it's the same as clicking the RMB on your remote -- which displays the context menu for the item. If you highlight an item by using the arrow movement keys and press "i", it will attempt to open the context menu for the item where the mouse cursor is pointed (if the mouse cursor isn't pointing anywhere, I think it just selects an item in the middle of the list, or something like that), which most likely isn't the item you wish to see.

What I ended up doing was to map another button on the remote to open the context menu and just ignore the "i" button. If you never use a mouse in XBMC, you can create a custom mouse.xml file in your userdata (wiki)/keymaps/ directory in which you change the normal RMB function to, instead, display the context menu. This makes the remote's "i" button (as well as the remote's RMB and the RMB of any mouse on your system) open the context menu while in XBMC.
Reply
#3
Thanks for the reply Smile
I would think I would need to change the remote mouse settings or something.I also use RMB or info button to get to context menu. Ill create a mouse.xml but not sure what code to enter. Got a script I can use? Doesnt matter too much what button it uses. I dont ever use the yellow,red,green,ect buttons so one of those would be fine. Here is the remote I have Amazon - MCE remote
Reply
#4
That's the exact same remote I have. Smile

Before proceeding, a bit of clarification:
  • The Context menu for movies displays various options, such as Queue item, Play from here, Edit title, Movie information, etc. This is the menu that is displayed when your press "c" on the keyboard or click the RMB.
  • The Info function displays the movie's title, director, genre, year, synopsis, etc. This is the page that's displayed when you press "i" on your keyboard. When most people want to use the remote's "Info" or "i" button, it is to display this Info page for a movie, TV show, album, etc. Indeed, that's what I had meant to say in my previous post about mapping another button on my remote (Info, not Context Menu).
If you do use your RMB in XBMC, then don't modify your mouse.xml; use keyboard.xml instead. To assign, for example, the Yellow remote button to open the context menu, create a custom keyboard.xml (wiki) in your userdata (wiki)/keymaps/ directory with the following contents:
Code:
<keymap>
  <global>
    <keyboard>
      <t mod="ctrl,shift">ContextMenu</t>
    </keyboard>
  </global>
</keymap>

If what you want is actually the Info function (rather than ContextMenu), change the <t mod="ctrl,shift"> statement to:
Code:
<t mod="ctrl,shift">Info</t>
Reply
#5
Thanks that did it!
Just curious is "t mod" the yellow button. The confusing part of the scripting for me is knowing what code the buttons on the remote goto.
I would still like the Context menu so I can click watch,unwatch,add to favorites without having to use mouse. What would the code be for one of the other buttons?
Reply
#6
Yeah, Ctrl+Shift+T is the Windows Media Center keyboard shortcut for "My TV". The remote's Yellow button is hard-wired to send this key press combination. Here's a list of the WMC keyboard shortcuts: http://msdn.microsoft.com/en-us/library/bb189249.aspx

You can find out what key presses the various remote buttons send by enabling debug log (wiki)ging in XBMC and then pressing a button several times. Examine your debug log (wiki) (xbmc.log) and see how XBMC identified those repeated key presses for that button. You can then use that information in your keyboard.xml file to map that button to the desired XBMC action/function.
Reply
#7
Thanks again!
For example if I wanted to use the Music button to open context it would be.
Sense Music is CTRL+M

Code:
<keymap>
  <global>
    <keyboard>
      <m mod="ctrl">ContextMenu</m>
    </keyboard>
  </global>
</keymap>
Reply
#8
Exactly! Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Context menu with MCE remote0
This forum uses Lukasz Tkacz MyBB addons.