Posts: 229
Joined: Dec 2010
Reputation:
10
should i expect a result if <include name="SubFlaggingConditions">
<control type="image">
<description>Closed Captioning Image</description>
<width>60</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>$INFO[Window([12003]).Property(SubtitleInfo),sub/,.png]</texture>
</control>
is in the skin while the script is executed?
Posts: 229
Joined: Dec 2010
Reputation:
10
i have the script running on focus of the window. and i ca nseeit being executed in the debug log. now im just alittle confused on how i would use the result to display an image. what i want to do is create a studio flag condition im my includecodecflagging.xml and then just use the include name to add to the group of media flags already in the dialoug window. could i use a visible to get it to work or how do i go about , been trying to figure it out. still learning and reading as much as i can about skinning but i dont know too much about python scriptsinteraction with the skin. but i am a quick learner
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
since the window property will return 'true', you'll have to create a true.png image in your case.
so skin.foo/media/sub/true.png must exist.
Posts: 229
Joined: Dec 2010
Reputation:
10
im am selecting folders with srt files in them. i changed the code to 2003 in all the places i had it, and it fails the script that way , but still retunrs no value in the dialouge screen. i am on dharma 10.1 btw. so this is working for you? you get a vaule returned if you set it to a label?
Posts: 229
Joined: Dec 2010
Reputation:
10
2011-06-09, 22:29
(This post was last modified: 2011-06-09, 22:45 by cruzannavy.)
well i initially tired to do it in the script but it failed immediately, ( and i figured it had to be the absolute window id for the script so i changed it back after it failed)
no i didnt change the page id either , i verified that aswell before i got started and i tried both the the codes ( from the wiki, 12003 2003) for the window id ill try the normal name approach instead of window id. and try some more things but i havent had any look retunring any labels or values. could it be launching the script to late to populate that info ? but it should populate that info dynamically even if i run the script via a separate button for testing purposes. it should auto fill that label on the script execution right? i have it to auto run on focus of the default button on the dialog window. thanks for helping me out and bouncing ideas around. hopefully ( hahah) it doesnt work on your end either and it not me F'ing it up somehow. or hopefully u get it to work on your end. thanks!
ill try the normal name now
Yeah no luck with the normal name
Posts: 229
Joined: Dec 2010
Reputation:
10
2011-06-14, 04:07
(This post was last modified: 2011-06-14, 04:15 by cruzannavy.)
2 questions.
the script is workign for me, but i have 2 observations. i dotn beleive this takes into account files tha have 4 cahracters for extensions ie. m2ts ? could i just add another line and say -4 or would it need more coding than that?
also, is there a way to tell the script to fetch the window id and then use that instead of hard coding it to 12003. that way i can use the script on whatever view has focus? thanks for all the help!
note. i did change it to -4 and it did pick up the m2ts and not the avi or mp4 obviously because it was one character off, ill trya and read up and see how to make the argument do either or ?
Posts: 229
Joined: Dec 2010
Reputation:
10
any guideance anyone... would it be a waste of time to use two scipts? ie one set yo -3 and one set to -4 ? or would they conflict?