Python script shortcut possible?
#1
Just wondering if it's possible to make a .cut files work with python scripts?

I tried:
Code:
<shortcut>
    <path>E:\dash\scripts\example.py</path>
    <label>Example</label>
    <thumb>E:\dash\scripts\example.jpg</thumb>
</shortcut>

And it just reboots XBMC when I click on it Sad

Or is it possible to launch a script from outside the "scripts" directory? They don't show up if I place it in "Programs".

Thanks in advance!
Reply
#2
You can ad a command to to your keymap.xml
See List of Built In Functions

You need:
<xxx>XBMC.RunScript(script[,args])</xxx>

xxx= button
Reply
#3
I see what you're saying, but I may end up with allot of scripts. I'm basically trying to integrate them into the "My Programs" view. So that I can launch scripts from within the "Programs" view.

I don't necessary want to dedicate a button to this. I need more of a linking system. Or like a shortcut to an xbe that runs a script that's passed to it?

Thanks
Reply
#4
use :
XBMC.ActivateWindow(window,dir)
Reply
#5
bricklayer Wrote:I see what you're saying, but I may end up with allot of scripts. I'm basically trying to integrate them into the "My Programs" view. So that I can launch scripts from within the "Programs" view.

I don't necessary want to dedicate a button to this. I need more of a linking system. Or like a shortcut to an xbe that runs a script that's passed to it?

Thanks
If you're good at scripting, just make a plugin that scrapes your scripts directory, then lists & launches scripts. Add said plugin as a source.
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#6
Hi,

I created quickly a program plugin allowing to see and launch your script from the program plugin window.
It is available here: http://passion-xbmc.org/tpmod/?dl=item144
Or using the script installer Passion XBMC under plugins->programs
Image
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

Image
Reply
#7
Thanks, I'll give it a try.
Reply

Logout Mark Read Team Forum Stats Members Help
Python script shortcut possible?0