Can I set Focus for a control from JSON-RPC
#1
I would like to set the focus on a specific item inside the control(9000), id=10 once I do the ActivateWindow(). Can I do that from the JSONRPC API? Didn't see something that would do that directly

Code:
#!/usr/bin/python

from xbmcjson import XBMC, PLAYER_VIDEO
import json

host = "localhost:8080"

xbmc = XBMC("http://" + host + "/jsonrpc")
myjson = xbmc.Player.GetActivePlayers()
window = xbmc.GUI.GetProperties({"properties":["currentwindow"]})
if (not myjson['result']) and (window['result']['currentwindow']['id'] == 10000):
    xbmc.GUI.ActivateWindow({"window":"video"})
    xbmc.GUI.ActivateWindow({"window":"home"})
Reply

Logout Mark Read Team Forum Stats Members Help
Can I set Focus for a control from JSON-RPC0