Kodi Community Forum

Full Version: Dialog box to run plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.

How do I create a dialog on start up to allow me run an add-on by selecting yes button?

The skin and dialog wikis don't mention anything about it
Look at this thread
Basic skin changing script

https://r.tapatalk.com/shareLink?url=htt...are_type=t
You need to make a autoexec.py script. Put it in the USERDATA folder. It will run at startup.
(2016-11-25, 04:08)ed_davidson Wrote: [ -> ]You need to make a autoexec.py script. Put it in the USERDATA folder. It will run at startup.

Modify and save this code as a autoexec.py

Code:
import xbmc, xbmcgui

dialog = xbmcgui.Dialog()
dialog.ok("Example Addon", "TYPE YOUR TEXT HERE")
xbmc.executebuiltin('RunAddon(plugin.video.Whatever)')
(2016-11-25, 04:39)ed_davidson Wrote: [ -> ]
(2016-11-25, 04:08)ed_davidson Wrote: [ -> ]You need to make a autoexec.py script. Put it in the USERDATA folder. It will run at startup.

Modify and save this code as a autoexec.py

Code:
import xbmc, xbmcgui

dialog = xbmcgui.Dialog()
dialog.ok("Example Addon", "TYPE YOUR TEXT HERE")
xbmc.executebuiltin('RunAddon(plugin.video.Whatever)')

Thank you! I will try, is this similar to services?
I don't know what you mean but with this script when you press OK. The selected Addon will run.
Thanks Ed.