Function/parameter to manually switch setting on/off ?

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
AussieFries Offline
Fan
Posts: 386
Joined: Aug 2010
Reputation: 1
Post: #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?
(This post was last modified: 2013-12-17 09:46 by AussieFries.)
find quote
AussieFries Offline
Fan
Posts: 386
Joined: Aug 2010
Reputation: 1
Post: #2
Anyone?
find quote
Ned Scott Offline
Wiki Guy
Posts: 30,806
Joined: Jan 2011
Reputation: 525
Location: Arizona, USA
Post: #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)

Full disclosure: I work for WeTek. However, this is my personal account, and my words and opinion are my own.

You can make easy links to the Kodi Wiki Manual using double brackets around common Kodi words: [[debug log]] = debug log (wiki), [[Video library]] = Video library (wiki), [[SMB]] = SMB (wiki) , [[userdata]] = userdata (wiki), etc
find quote
AussieFries Offline
Fan
Posts: 386
Joined: Aug 2010
Reputation: 1
Post: #4
Thanks Ned
find quote
elusien Offline
Senior Member
Posts: 250
Joined: Jan 2013
Reputation: 3
Location: Polis Chrysochous, Cyprus
Wink  RE: Function/parameter to manually switch setting on/off ?
Post: #5
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://wiki.xbmc.org/index.php?title=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 8
Intel Core-i3-2377M @ 1.5GHz, 4GB DDR3 @ 665MHz, Intel HD3000
465GB SATA disk, DVD-RW


find quote