Thread Rating:
  • 0 Vote(s) - 0 Average
Function/parameter to manually switch setting on/off ?
#1
I'm trying to map setting "Allow XBMC to receive AirPlay content" in keyboard.xml but it doesn't work:

<k>Skin.ToggleSetting(services.airplay)</k>

<k>ActivateWindow(services.airplay)</k> doesn't work either.

Am I using the wrong commands? Could someone please advise how XBMC settings should be activated?
Reply
#2
Anyone?
Reply
#3
No idea, but I didn't think we had a way to map settings to key input? (which isn't to say we don't, since there's a lot I don't notice that goes into the latest builds)
Reply
#4
Thanks Ned
Reply
#5
Wink 
The following will bring up the "SERVICES" window for you:

Code:
<k>XBMC.ActivateWindow(10018)</k>

I've tried the following to select the "AIRPLAY" menu, but it doesn't work - just brings up "SERVICES" as above.

Code:
<k>XBMC.ActivateWindowAndFocus(10018, 3,6)</k>

Hope this helps. Wink
DEBUG log: http://kodi.wiki/view/Log_file/Easy
HTPC advice: http://mymediaexperience.com , http://lifehacker.com/5828747/how-to-bui...lete-guide
My HTPC: an Acer Revo RL80 Nettop PC:
Windows 10
Intel Core-i3-2377M @ 1.5GHz, 4GB DDR3 @ 665MHz, Intel HD3000
465GB SATA disk, DVD-RW, 1.8TB Seagate USB disk


Reply



Function/parameter to manually switch setting on/off ?00