How to run script from skin?
#1
I've moved my post to the generic Development forum as I realize it's not strictly speaking skinning.

I know to use <onclick>XBMC.RunScript(path, args)</onclick>, but my problem is with the "path" part.
I'm trying to get my button to execute a script that's bundled with the skin, but I can't figure out the relative/special path (so that it always works, regardless of platform or location).

The structure is as follows:
myskin
-resources
--skins
---default
----720p
-----[skin xml files]
--lib
---[my script files]

What path can I specify in the <onclick> tag that will properly point to the \resources\lib folder?
I've tried special://skin, but I can't figure out which folder level that actually points to.
Reply
#2
Code:
special://skin/

http://wiki.xbmc.org/index.php?title=Special_protocol
Reply
#3
(2014-07-16, 20:22)Hitcher Wrote:
Code:
special://skin/

http://wiki.xbmc.org/index.php?title=Special_protocol
I tried special://skin, but I can't figure out what folder level that's pointing to. The wiki says it's the root, but it didn't see my scripts when I put them in the root "myskin" folder. Which folder level does special://skin point to?
Reply
#4
The root of your skin but your whole structure looks wrong.

Image
Reply
#5
i don't think it's possible to include a complete addon in your skin.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#6
(2014-07-16, 22:34)ronie Wrote: i don't think it's possible to include a complete addon in your skin.

Rather, I'm trying to include a skin in my addon. The addon has several scripts, and I'm calling xbmcgui.WindowXMLDialog to display a skin to let the user run the different scripts at will. Sorry I didn't explain that well at the beginning.

I've moved my post to the generic Development forum as I realize it's not strictly speaking skinning.
Reply

Logout Mark Read Team Forum Stats Members Help
How to run script from skin?0