Script xbmcgui menu to run some plugin with search its posible?
#1
Hello, i am new in develomepment in python. Can be done a script to run video plugin. And they would have the option sort and search from the plugin streams,with nice menu like this i created. But i dont know its supported script to run other plugin in XBMC. I use livestream plugin its working good and it read from .xml file streams.

Image
Reply
#2
you can create a script that launches the addon...

Code:
import xbmc

XBMC.RunAddon(addon.id)

Save this as .py and make it your <onclick>RunScript(path-to-script).py</conclick>

BTW: A mod may move it to python dev section...

cheers,
mad-max
- - - Tribute to Metallica - - -
If I managed to help you, please click my reputation
Reply
#3
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?
Reply
#4
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
Reply
#5
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?
Reply

Logout Mark Read Team Forum Stats Members Help
Script xbmcgui menu to run some plugin with search its posible?0