Function/parameter to manually switch setting on/off ?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
AussieFries Offline
Senior Member
Posts: 252
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
Senior Member
Posts: 252
Joined: Aug 2010
Reputation: 1
Post: #2
Anyone?
find quote
Ned Scott Offline
Team-XBMC Wiki Guy
Posts: 19,911
Joined: Jan 2011
Reputation: 247
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)

You can make easy links to the XBMC wiki using double brackets around common XBMC words: [[debug log]] = debug log, [[Video library]] = Video library, [[SMB]] = SMB , [[userdata]] = userdata, etc
find quote
AussieFries Offline
Senior Member
Posts: 252
Joined: Aug 2010
Reputation: 1
Post: #4
Thanks Ned
find quote
elusien Offline
Senior Member
Posts: 177
Joined: Jan 2013
Reputation: 1
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