Editing Keymaps for PVR
#1
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:

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

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:

<FullscreenVideo>
<remote>
<green>OSD</green>
</remote>
</FullscreenVideo>

<VideoOSD>
<remote>
<green>Back</green>
</remote>
</VideoOSD>

Thanks in advance!
Reply
#2
Anyone?
Reply
#3
I have this sort of thing working here:
http://code.google.com/p/bossanova808-xb...yboard.xml

Should be able to work it out from that
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#4
(2013-10-27, 06:28)bossanova808 Wrote: I have this sort of thing working here:
http://code.google.com/p/bossanova808-xb...yboard.xml

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
Reply
#5
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...
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#6
This brings up the EPG Timeline:
XBMC.ActivateWindowAndFocus(MyPVR, 31,0, 10,0)

You seem to have:
XBMC.ActivateWindowAndFocus(PVROSDGuide)

Which isn't the same. I can bring that up and remap the buttons in there easily with:
<PVROSDGuide>
<remote>
<guide>Close</guide>
</remote>
</PVROSDGuide>

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?
Reply
#7
Well the window IDs are here, and the technique should basically be the same for any of them:
http://wiki.xbmc.org/index.php?title=Window_IDs

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!
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#8
Its the EPG in Timeline view (best screenshot I can find for Aeon Nox without uploading one):
Image

Looks like this window hasn't been given an ID:
http://forum.xbmc.org/showthread.php?tid...#pid844667
Reply
#9
Well that's 2011 - but the ultimate list is, I think, in
https://github.com/xbmc/xbmc/blob/master...slator.cpp

...if you can't find it there then maybe see if you can get opdenkamp's attention for a moment - maybe on IRC?
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply
#10
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
Quote:<FullscreenLiveTV>
<keyboard>
<menu>XBMC.ActivateWindowAndFocus(MyPVR, 31,0, 10,0)</menu>
</keyboard>
</FullscreenLiveTV>
<MyPVR>
<keyboard>
<menu>RunScript(special://masterprofile/epg-back.py)</menu>
</keyboard>
</MyPVR>

epg-back.py (script file to be placed in userdata folder)
Quote:import xbmc
xbmc.executebuiltin("Action(Close)")
xbmc.executebuiltin("Action(FullScreen)")

Hope this helps.
Reply

Logout Mark Read Team Forum Stats Members Help
Editing Keymaps for PVR0