Kodi Community Forum
Can we show ID of currently focused item? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Can we show ID of currently focused item? (/showthread.php?tid=104090)



Can we show ID of currently focused item? - pecinko - 2011-06-23

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.


- Hitcher - 2011-06-23

Is System.CurrentControl what you want?


- Jeroen - 2011-06-23

Doesn't System.CurrentControl do that? But that could also be the control's label value, I'm not sure.


- `Black - 2011-06-23

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.


- pecinko - 2011-06-23

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.