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
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.