2016-01-27, 13:50
(2016-01-27, 02:39)emiralles Wrote:(2016-01-26, 22:41)marcelveldt Wrote:(2016-01-23, 10:30)emiralles Wrote: Hi, can you add a function for check if a file exist or not? There isn't any that do it.
How do you want this implemented ?
call the script with something like script.skin.helper.service,action=fileexists,file=blahlah.file and return the result in a window prop or skin string ?
Or just add it as a general window property for the selected listitem ?
True o false is good forma me
Edited, do it!!, I'll used soon. Thanks
I Try it, I don't have that I want it.
Code:
<onload>RunScript(script.skin.helper.service,action=fileexists,file=$INFO[Window(2003).Property(AudioLanguage.1),images/flags/subtitles/flags/,.png],windowprop=flag_check)</onload>
<visible>StringCompare(Window.Property(flag_check),EXISTS)</visible>
and this too
Code:
<onload>RunScript(script.skin.helper.service,action=fileexists,file=$INFO[Window(2003).Property(AudioLanguage.1),images/flags/subtitles/flags/,.png],skinstring=flag_check)</onload>
<visible>SubString(skin.string(flag_check),EXIST)</visible>
Don't go
what am I doing wrong?
How can I used it in a label control? It's possible?, because I want check in it if the file exist or not?