Kodi Community Forum

Full Version: open addon from main menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi all

i have a little plugin that i want to open it from the main menu
in the old version of xbmc i just add to home.xml this line:

Code:
<item id="13">
<label>50002</label>
<onclick>ActivateWindow(1,plugin://video/icon2/?mode=MODE_CAMERA_LIST</onclick>
<icon>special://skin/backgrounds/contec-cam.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Scripts_Folder)]</thumb>
<visible>!Skin.HasSetting(HomeMenuNoScriptsButton)</visible>
</item>

but now i try to convert it to addon so i try to this in the home.xml:

Code:
    <onclick>ActivateWindow(1,addons://video/icon2/?mode=MODE_ROOM_LIST</onclick>

but the plugin isnt open

anyone know why?

thank you
ofer
If it's a script or plugin it should be

Runscript(addon id)
RunPlugin(addon id)

Or what skin you using? If Confluence, use this mod and due it through the skin by adding it as a favorite