Kodi Community Forum
Dialog box to run plugin - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Confluence (https://forum.kodi.tv/forumdisplay.php?fid=125)
---- Thread: Dialog box to run plugin (/showthread.php?tid=297840)



Dialog box to run plugin - todayismyluckyday8 - 2016-11-25

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


Dialog box to run plugin - ed_davidson - 2016-11-25

Look at this thread
Basic skin changing script

https://r.tapatalk.com/shareLink?url=http%3A%2F%2Fforum%2Ekodi%2Etv%2Fshowthread%2Ephp%3Ftid%3D296359&share_tid=296359&share_fid=41882&share_type=t


Dialog box to run plugin - ed_davidson - 2016-11-25

You need to make a autoexec.py script. Put it in the USERDATA folder. It will run at startup.


RE: Dialog box to run plugin - ed_davidson - 2016-11-25

(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)')



RE: Dialog box to run plugin - todayismyluckyday8 - 2016-11-25

(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?


Dialog box to run plugin - ed_davidson - 2016-11-25

I don't know what you mean but with this script when you press OK. The selected Addon will run.


RE: Dialog box to run plugin - todayismyluckyday8 - 2016-11-25

Thanks Ed.


This forum uses Lukasz Tkacz MyBB addons.