Kodi Community Forum

Full Version: add-on running conditional?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am working on skin support for an add-on (cu lyrics)

In the music visualization I want to hide a control when the script's window is visible. Except the window has no ID. Is there a way to set up a conditional that kicks in when an add-on is started?

Something like <visible>Script.IsRunning(xbmc.python.lyrics)</visible> ?
instead of the ID, you can use the filename:
Window.IsVisible(script-XBMC_Lyrics-main.xml)
Oh cool, didn't know that. Thanks man Smile
That's kinda hacky though - it relies on you knowing what the scripts window is called.

I doubt we'll have time for much more than that in the short-term though.

Cheers,
Jonathan
heh you didn't say that when you added it for me for that specific purpose back in the day Tongue