Map remote functions inside addon - what label?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
bluenote Offline
Fan
Posts: 316
Joined: May 2010
Reputation: 0
Post: #1
I want to configure some remote functions (0 to queue) inside an addon.
I know how to use remote.xml but what I cannot figure out is how to label the section to communicate what addon.
Built in areas are specified by things like <MyVideoLibrary> (keys/functions) </MyVideoLibrary>

How do I figure out what to label my section for a particular addon?

thanks for any help

EDIT: I have tried the friendly name of the addon from the addon.xml file, as well as the addon ID also from the addon.xml and neither worked.
My particular case is the Random Trailers addon during trailer playback
(This post was last modified: 2014-02-12 23:58 by bluenote.)
find quote
bluenote Offline
Fan
Posts: 316
Joined: May 2010
Reputation: 0
Post: #2
I hope I'm not the first one to try this??!!
find quote
bluenote Offline
Fan
Posts: 316
Joined: May 2010
Reputation: 0
Post: #3
Ok, since I finally succeeded with some help and it would seem no one has ever wanted to do this and wrote it down before I figured I better come back and document my solve.

First I made a keyboard.xml in %appdata%/XBMC/userdata/keymaps

Then there IS a notation in the wiki (a tiny one) that you can use the window id to specify a keymap effective screen, (Like global or MyVideoLibrary or other builtin scopes for the keymap to be active within). That documents that the format is:
<window###> where ### is the ID of the window.

Python windows are apparently assigned from around 13000 or 13001 on up to a certain limit. Luckily for me the developer for the addon was nice enough to put a log entry to report the windowID. In this case it was 13001. I do not know if that will stay static or move around from time to time, or be the same or different for other running addons. What I can suggest is try 13000 and up.

This is what my file ended up looking like:

<keymap>

<window13001>
<keyboard>
<zero>queue</zero>
</keyboard>
</window13001>

</keymap>

I hope this will be of some use to someone else wanting to map a remote button or keyboard shortcut to a function within an addon screen only.
find quote