Window.IsActive?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Hitcher Offline
Skilled Skinner
Posts: 10,879
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #1
What is an active window? How is it different to a visible window?

Thanks.
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,289
Joined: Jun 2006
Reputation: 57
Location: Earth
Post: #2
Visible is including animation close time Active is only until the close window command is called
find quote
sphere Offline
Team-Kodi Member
Posts: 1,223
Joined: Jul 2009
Reputation: 50
Location: Germany
Post: #3
FYI, because of this was a good question and a good answer, I wanted to add this to the wiki - just noticed that is already present there:
http://wiki.xbmc.org/index.php?title=Lis...Conditions
Code:
Window.IsVisible(window)     Returns true if the window is visible (includes fade out time on dialogs)
Window.IsActive(window)     Returns true if the window with id or title ?window? is active (excludes fade out time on dialogs)

My GitHub. My Add-ons:
[Image: IOoywq0.jpg]
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,879
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #4
I did read the wiki but didn't get it - Jezz's explanation makes sense now.

Thanks,
(This post was last modified: 2012-03-16 16:21 by Hitcher.)
find quote