Posts: 5,184
Joined: Jan 2009
Reputation:
131
The only way to currently do this is to run XBMC.GetInfoLabels over JSON-RPC and request the following infolabel "System.CurrentWindow". But I don't recommend using GetInfoLabels because it is deprecated and might sometimes return wrong information.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 68
Joined: Apr 2006
Reputation:
0
Thanks Montellese.
As its been deprecated does that mean its likely to be replaced by something at some point?
Cheers,
Posts: 5,184
Joined: Jan 2009
Reputation:
131
I don't really know about the python stuff but that might work yeah.
Concerning XBMC.GetInfoLabels: Ideally it will be removed someday but it won't be that soon I guess because a lot of people still rely on the info labels. Concerning your specific case I already have some code that will expose the id and label of the current window through GUI.GetProperties (not available for Eden).
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 68
Joined: Apr 2006
Reputation:
0
Coolio, cheers.
I'll have a play when i get the chance in the few days and see what i come up with. I only need to detect a few screens (movie lib, tv lib, movie info, tv info) so infolabels might work.
I'll attempt the python side, but i'm on windows now so i'm not sure how to even get python up and running with the xbmc libs tbh.