2023-12-17, 02:09
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?
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?