20 Nov 2019 - TVDB Scraper v3.2.0 is now available which reinstates scraping. TVDB are still in the process of fixing a number of bugs so there may still be further breakages. See this post. 2901570 (post)

How I can stop a addon?
#1
I am currently creating a service addon for my Raspberry Pi.
With this service addon I want to start a other addon with a signal at the GPIO. If the signal is gone at the GPIO, then the main menu should be displayed again.
So far, so good .... If I set GPIO to high, the addon will be started and displayed correctly. I use this command.
Code:
xbmc.executebuiltin("XBMC.RunScript(" + addon_path + "/addon.py)")

But I can not find a way to quit the addon or change the window.
For example, with this command.
Code:
xbmc.executebuiltin("ActivateWindow(Home)")
Nothing is happening....

Does anyone have any idea how to solve this problem?

Thanks in advance for your help.
Reply
#2
if your addon opens a dialog, it needs to be closed before you can activate another window.
xbmc.executebuiltin("Dialog.Close(all)")
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
I have already tried...
Code:
xbmc.executebuiltin("Dialog.Close()")
And it doesn't work.
But the "all" argument could be good hint.
I will try it later.
Reply
#4
(2019-11-03, 01:16)ronie Wrote: if your addon opens a dialog, it needs to be closed before you can activate another window.
xbmc.executebuiltin("Dialog.Close(all)")
When I tried this, nothing happened.
To close the addon I must click on the back button from the addon screen.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
How I can stop a addon?00