Dialog box to run plugin
#1
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
Reply
#2
Look at this thread
Basic skin changing script

https://r.tapatalk.com/shareLink?url=htt...are_type=t
Reply
#3
You need to make a autoexec.py script. Put it in the USERDATA folder. It will run at startup.
Reply
#4
(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)')
Reply
#5
(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?
Reply
#6
I don't know what you mean but with this script when you press OK. The selected Addon will run.
Reply
#7
Thanks Ed.
Reply



Logout Mark Read Team Forum Stats Members Help
Dialog box to run plugin0
This forum uses Lukasz Tkacz MyBB addons.