2016-07-20, 15:45
2016-07-20, 16:02
<onload>RunScript(skin.mynewskin\myscript.py)</onload>
something like this on the startup.xml file
something like this on the startup.xml file
2016-07-20, 16:45
The same way you run all other scripts:
RunScript(script[,args]*)
Example with skinshortcuts
"Runs the python script. You must specify the full path to the script. One way to specify the full path is through the special protocol. If the script is an add-on, you can also execute it using its add-on id. As of 2007/02/24, all extra parameters are passed to the script as arguments and can be accessed by python using sys.argv"
See:
http://kodi.wiki/view/List_of_built-in_functions
http://kodi.wiki/view/Special_protocol
RunScript(script[,args]*)
Example with skinshortcuts
Code:
<onload>RunScript(script.skinshortcuts,type=buildxml&mainmenuID=99&levels=0&group=mainmenu|shutdown)</onload>
"Runs the python script. You must specify the full path to the script. One way to specify the full path is through the special protocol. If the script is an add-on, you can also execute it using its add-on id. As of 2007/02/24, all extra parameters are passed to the script as arguments and can be accessed by python using sys.argv"
See:
http://kodi.wiki/view/List_of_built-in_functions
http://kodi.wiki/view/Special_protocol