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!
(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
Oh you youngsters, always need it on a platter eh?
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:
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?
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!
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.