2016-05-04, 08:22
(2016-04-30, 08:04)marcelveldt Wrote:Marcel,(2016-04-30, 05:47)wyrm Wrote: I thought there was an issue with my calling of the script (I tried clearing the skin string before calling the script to help with the error message that was thrown in the debug log) but the first time I enter the home screen I always see the attached error lines in the debug log, I don't see then the next time I enter the home menu, only on the first entry
Well, that's simple. At that time the property is not yet available (so is empty).
A solution could be to check if the property has a value before calling the script or even better if the value is empty use a timer to launch the script.
Something like this:
<onload condition="!IsEmpty(Window(Home).Property(Movies.Count))">RunScript(blah)</onload>
<onload condition="IsEmpty(Window(Home).Property(Movies.Count))">AlarmClock(count,RunScript(blah),00:05,silent)</onload>
sorry did not get back to this sooner, but someone squirreled me with the letter navigation feature so it fell down the job stack a bit. Tried your suggestion and it did NOT work. As an additional check I displayed the windows property with a label control and used the second form of your onload set to 40 seconds. Label displayed just fine (that is there was a value in the property and the label control showed it correctly) and 40 seconds or there abouts later scripts fails message was shown by the KaiToast dialog.
If you like I can PM you the location of the skin github that I am testing this in and you can take a direct look at my code. BTW, tested with 1.0.89 of your script, still no joy.
Wyrm