Run script from a bookmark
#1
hi there, i tried posting this in the xbmc support forum but got nothing back.

is it possible to run a script from a bookmark placed inside xboxmediacenter.xml?

so when you click on my videos, it comes up in the list (the one with smb shares and so forth)

so far i've tried it with:

<video>
<default />
<bookmark>
<name>e drive</name>
<path>e:\</path>
</bookmark>
<bookmark>
<name>google video</name>
<path>q:\scripts\gvp\gvp.py</path>
</bookmark>
</video>

when i click google video, nothing happens, any help?



Reply
#2
hi
you may need builtins
it should look something like :
<path>xbmc.executescript('q:\scripts\gvp\gvp.py')</path>
Reply
#3
nope didnt work, has anyone else had any luck with this?
Reply
#4
here is a piece of one of my myvideos.xml file, it adds youtube script to the side menu... maybe you can use this for bookmarks.

Quote:<control>
<description>youtube</description>
<type>button</type>
<id>33</id>
<posx>50</posx>
<posy>309</posy>
<label>youtube</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>32</onup>
<ondown>2</ondown>
<onclick>xbmc.runscript(q:\scripts\youtube\youtube.py)</onclick>
<include>buttonpanelslide</include>
</control>

if this works, please post and let people know. it is a pain when people dont post that a solution worked. ^^
Reply
#5
I'll give this a try. I'm hoping to add the excellent myTV script to one of 3 places:

1. The very front menus as a 'My TV' item.
2. Add an entry to the 'My Videos' section either on the left as you have, or on the left hand pane as you have.

It would appear that you cant had it as a bookmark to the sources.xml. Or can you?
Reply

Logout Mark Read Team Forum Stats Members Help
Run script from a bookmark0