Running script on button press.
#1
hello,

i want to run on script when pressing on a remotecontrol button. tried to use this´in keymap.xml:

<action>
<description>play stream</description>
<id>0</id>
<execute>q:\scripts\auto.py</execute>
<remote>7</remote>
</action>

but that wont work.

putting there a
<execute>xbmc.activatewindow(4)</execute>
works perfect. anyone ? Smile
Reply
#2
<execute>xbmc.runscript(q:\scripts\auto.py)</execute>

or try the following when you upgrade xbmc

<seven>xbmc.runscript(q:\scripts\auto.py)</seven>


http://manual.xboxmediacenter.de/wakka.p....s&v=54n
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
thanks alot for your quick reply.
but what do you mean by "when you upgrad xbmc" ?
Reply
#4
what build date is your xbmc, they changed the keymap.xml format.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#5
currently its 05.03.30
upgrading to newest (08.30) ´now though because i need merged folders and the only way to get those seem to be ftp share
Reply

Logout Mark Read Team Forum Stats Members Help
Running script on button press.0