Kodi Community Forum

Full Version: Need to get controlID and control type for controls such as 'sliderex' from addon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am working on the Text to Speech addon. For controls such as sliderex, I need to voice the label in addition to the value. But so far I haven't been able to figure out when a control is a 'sliderex'. Even if I know that the control is a "sliderex" I need to get the label value. I would like to voice "Slider" "Volume" (the label) and "52" (the value). The only thing I can voice now is the value without context.

Among the things I have tried:

controlID = cls.window().getFocusId() (yields a negative value, probably error code)

and xbmc.getInfoLabel("System.CurrentControl()") (yields something similarly useless)


Any thoughts?