Kodi Community Forum

Full Version: Editing Keymaps for PVR
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just got my pulse eight hdmi cec adapter (awesome bit of kit may I add!), I've just about got everything mapped the way I want but struggling with one last bit!

I've got this:

<guide>XBMC.ActivateWindowAndFocus(MyPVR, 31,0, 10,0)</guide>

Which maps the correct button on my remote to launch the EPG. What I want to do is be able to hit the same button again when the EPG is open and have it close. Is there a way to do that? I've managed it in other areas, for example:



Thanks in advance!
I have this sort of thing working here:

Should be able to work it out from that
(2013-10-27, 06:28)bossanova808 Wrote: [ -> ]I have this sort of thing working here:

Should be able to work it out from that

Thanks, but I'm still struggling. I think its because XBMC.ActivateWindowAndFocus(MyPVR, 31,0, 10,0) doesn't have a label (I presume it does in Gotham?). You've remapped so much that I can't work out which bit I need Big Grin
Oh you youngsters, always need it on a platter eh? Wink

Mine is for Frodo and based off the xmbcustomregis but works basically the same for openelec etc.

All you need to look at is the fullscreenlivetv bit and just above there I have pasted the actual names of the windows you need vs those numbers you are using...
This brings up the EPG Timeline:
XBMC.ActivateWindowAndFocus(MyPVR, 31,0, 10,0)

You seem to have:

Which isn't the same. I can bring that up and remap the buttons in there easily with:

But that isn't what I'm trying to achieve. I want to bring up the EPG Timeline with a key and then close it again with the same key. I guess I need the equivalent of <PVROSDGuide> for the EPG Timeline?
Well the window IDs are here, and the technique should basically be the same for any of them:

Do you mean the main EPG window, or do you mean the strip OSD EPG for that channel? I use the strip one in my example...but I presume you can do the other too.

Good luck!
Its the EPG in Timeline view (best screenshot I can find for Aeon Nox without uploading one):

Looks like this window hasn't been given an ID:
Well that's 2011 - but the ultimate list is, I think, in

...if you can't find it there then maybe see if you can get opdenkamp's attention for a moment - maybe on IRC?
Well, I arrived at this thread after searching google for the same thing. So here's my contribution to the solutions (activate a script using Keyboard.xml). I use android and maps the menu button instead

in Keyboard.xml
<menu>XBMC.ActivateWindowAndFocus(MyPVR, 31,0, 10,0)</menu>

epg-back.py (script file to be placed in userdata folder)
Quote:import xbmc

Hope this helps.