Posts: 3,956
Joined: Dec 2008
Reputation:
62
Is there a way for XBMC to return info (ID) about currently focussed item? was thinking about mapping it to a key, as debugging="true" gets in the way sometimes.
Posts: 17,247
Joined: Aug 2007
Reputation:
566
Hitcher
Team-Kodi Member
Posts: 17,247
Is System.CurrentControl what you want?
Posts: 3,660
Joined: Feb 2008
Reputation:
93
Jeroen
Team-Kodi Member
Posts: 3,660
Doesn't System.CurrentControl do that? But that could also be the control's label value, I'm not sure.
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
System.CurrentControl returns the label, not the id. To get the id of the current focused label, you have to write a small python script. But I don't know if you can map a script to a button.
Posts: 3,956
Joined: Dec 2008
Reputation:
62
Yup, Black is right, System.CurrentControl returns the label.
I thought it would be convenient to get ID when needed, just like we show DebugGrid from time to time, not always. With debugging=true one need to restart XBMC.