2017-12-29, 00:05
Hi
i try to start / stop a script from a servicescript when a push button is pressed.
starting the script with
s='XBMC.RunAddon("script.module.input",Relais='+str(nr-3)+')'
xbmc.executebuiltin(s)
works very welll
but i have not found a way to stop it.
When i try it with
xbmc.executebuiltin('XBMC.StopScript("script.module.input")')
it doesn´t work and kodi.log shows
CPythonInvoker(6, /storage/.kodi/addons/script.module.input/addon.py): script didn't stop in 5 seconds - let's kill it
script.module.input has a modal dialog with home button . If i press the Home button script closes as expected
Any help ?
Martin
i try to start / stop a script from a servicescript when a push button is pressed.
starting the script with
s='XBMC.RunAddon("script.module.input",Relais='+str(nr-3)+')'
xbmc.executebuiltin(s)
works very welll
but i have not found a way to stop it.
When i try it with
xbmc.executebuiltin('XBMC.StopScript("script.module.input")')
it doesn´t work and kodi.log shows
CPythonInvoker(6, /storage/.kodi/addons/script.module.input/addon.py): script didn't stop in 5 seconds - let's kill it
script.module.input has a modal dialog with home button . If i press the Home button script closes as expected
Any help ?
Martin