Posts: 39
Joined: Mar 2011
Reputation:
1
Hi,
I know (from the wiki) that a call to window.property(<value>) will return certain defined values for several windows (xmlfile for the XML file, weather has some special values, the home screen too).
But for the life of me I can't find a list of pre-defined values. There seems to be no window.property(ID) or window.property(name). I have tried looking in the source codes, but I got lost in the forest since C(++?) is not my cup of tea.
So please - can someone direct me to a list of properties that are build in to Kodi?
Thanks!
Posts: 39
Joined: Mar 2011
Reputation:
1
2015-04-18, 09:45
(This post was last modified: 2015-04-18, 09:45 by mario661.)
It's a nice tool, but not what I need. I need to be able to get a Window ID (number or constant name) which I would expect to be accessable by querying the window.property just like the xmlfile value. There is REALLY not something like window.property(id) or window.property(name) or something to this effect?
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
why do you need the window id if i may ask?
window id's are deprecated, skins should only use / rely on window names.
Posts: 39
Joined: Mar 2011
Reputation:
1
I don't want to use isVisible because of multiple checks I want to do. But we're diverting from the original question here. What are the populated values? No name and or ID? If that's the answer, strange but OK. I will stick with the xmlfile value, along with my feature request to add this to the window property list. If it is and I am too stupid to find it, please say so and tell me what I was missing.
Posts: 4,060
Joined: Mar 2010
Reputation:
94
Populated Values of what? We still don't understand what you're looking for or what exactly you're asking.
Make a screenshot or an example else i doubt someone can give you an answer.
Posts: 39
Joined: Mar 2011
Reputation:
1
Window.property(xmlfile) = returns xml file of current window
Window(Weather).property(location) = returns weather location
Window.property(--what-here--) = returns window ID
Window(Home).property(--what-here--) = returns window ID of Home
What can be filled in for '--what-here--' to get the value 'window ID'. If not the ID, non-localized name is OK too.
I am NOT looking for the localized name (system.currentWindow). I don't want to use isVisible for reasons I don't want to get in to.
I have read the wiki. It only gives the example of getting the xmlfile value. The description is:
"Window([window]).Property(key) : window property. Key can be any value, optional window can be id or name."
It then lists special values for home and weather values, like Window(weather).property(location) etc.
I can't find the logic to have "window.property(xmlfile)" to get the xml filename of a window, but not something like "window.property(id)" or "window.property(name)" or "window.property(whatever)" to identify a window which is not influenced by localization. Up to now, xmlfile is the only value I can find but feel that's a hack to use.
Again; not interested in other methods of achieving a simular result like isvisible or something like that. JSON-RPC (gui.getproperty I thought it was) DOES give back the window ID.
Posts: 677
Joined: Sep 2011
Reputation:
14
Hello mario661
Is it possible to use string with specific name, and then to call some window.
I mean just trying to help,but still l trying to figure out what map you want to make.
Best Regards