How to auto start a specific mode of an addon
#1
Hi,

If I want to auto start xyz add-on, I can use this

Code:
import xbmc
xbmc.executebuiltin("RunAddon(plugin.video.xyz)")

I am trying to figure out how to start this add-on to a specific mode like mode == 2, I use this code but does not work, it still brings me to home menu of the add-on.

Code:
xbmc.executebuiltin("ActivateWindow(10025,plugin://plugin.video.xyz/?mode=2)")

Please help. Thanks in advance.
Reply
#2
Thread moved to add-on development
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#3
Finally, found an answer. Mode alone is not enough, one must add name and url for the code to work.

Code:
xbmc.executebuiltin("ActivateWindow(10025,plugin://plugin.video.xyz/?mode=2&name=xyz&url=http%3A%2F%2Fxyz.com)")
Reply

Logout Mark Read Team Forum Stats Members Help
How to auto start a specific mode of an addon0