Kodi Community Forum

Full Version: Function/parameter to manually switch setting on/off ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Anyone?
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)
Thanks Ned
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