RunScript for settings.xml defaults
#1
Hi,

Is there a way to run a script when a user clicks "Defaults" in an addons settings?

I've tried the obvious in settings.xml:
Code:
default="RunScript($ID,xyz)"

This doesn't work.
Reply
#2
no, about the best thing you could do is have a dummy setting "defaults" defaulted to True, then when you're script is first run set that to False and do whatever you wanted to do when you press the defaults button.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
OK thanks, I'll try that. Is this a feature that's worth requesting? I don't know much about the internals of XBMC so don't know if it's practical.
Reply
#4
I have to admit, python based settings would be pretty handy
Reply

Logout Mark Read Team Forum Stats Members Help
RunScript for settings.xml defaults0