Posts: 4
Joined: Jan 2012
Reputation:
0
Thanks mad-max, i try this but not success. I wana make when click on the "VOD" to run plugin.video.stream. Where add this <onclick>RunScript(path-to-script).py</conclick> to code, can you give more specific example?
Posts: 1,514
Joined: Jul 2010
Reputation:
60
You need to set the onclick event within your button control for the button that shall execute the script...
- - - Tribute to Metallica - - -
If I managed to help you, please click my reputation
Posts: 4
Joined: Jan 2012
Reputation:
0
I try this added in default.py:
def onControl(self, control):
if control == self.button0:
<onclick>RunScript(special://home//addons//script.vod)plugin.py</conclick>
In plugin.py is code:
import xbmc
XBMC.RunAddon(video.streams)
Exit button is working but no success with run script, what i do wrong?