Posts: 17,390
Joined: Aug 2007
Reputation:
583
Hitcher
Team-Kodi Member
Posts: 17,390
2012-05-27, 18:43
While trying to find a way to hide a global custom overlay when a program addon is run I discovered that System.CurrentWindow returns system as the window but there's no mention of it in the wiki so I don't know it's name or id to use in a visible condition, instead I'm having to use this stringcompare - !StringCompare(System.CurrentWindow,system).
Anyone know if it actually has a name or ID I can use in Window.IsVisible()?
Thanks.
Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
I'm kind of confused here but for a program add-on Window.IsVisible(XML FileName) should work fine
Posts: 5,292
Joined: Jun 2006
Reputation:
62
Jezz_X
Team-XBMC Skinner
Posts: 5,292
oh I don't think you can just do a general check for every add-on you run to match
Posts: 17,390
Joined: Aug 2007
Reputation:
583
Hitcher
Team-Kodi Member
Posts: 17,390
Oh yes, but it must mean something surely?
Posts: 672
Joined: Aug 2010
Reputation:
13
pieh
Retired Team-Kodi Member
Posts: 672
Python windows automaticly assign their ids from 13000 up to 13010. If you would look into strings.xml / strings.po You would see that 13000 string is "System" (that's the reason for current behavior). You could propably use !Window.IsVisible(13000) up to 13010 to determine if there is active python window.
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first
My previous forum/trac nickname: grajen3