2011-12-10, 14:37
let me try to clear up some of the confusion...
your skin should just run the script with the parameters it needs.
the script will detect if it was previously started (by another skin) and kill that thread.
you don't need to worry about skin switches.
the only thing you have to make sure of is that you run the script once,
when a user starts your skin or switches to your skin.
the two lines of code i posted above should take care of that and it's all you need.
please let me know if there's anything you don't get or if i've missed something :-)
pecinko Wrote:I still think there's no way of telling what parameters were used by previous skinindeed, and there's no need to.
your skin should just run the script with the parameters it needs.
the script will detect if it was previously started (by another skin) and kill that thread.
pecinko Wrote:Even with property check ronie suggested - ones the property is set it will not guard from future skin switches.
you don't need to worry about skin switches.
the only thing you have to make sure of is that you run the script once,
when a user starts your skin or switches to your skin.
the two lines of code i posted above should take care of that and it's all you need.
please let me know if there's anything you don't get or if i've missed something :-)