Kodi Community Forum

Full Version: Home Menu buttons for add-ons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
With a little bit of trial and error, I have been able to create some home menu buttons that initiate some add-ons rather than go through the process of having separate icons or labels.

<item id="a number usually greater than 20">
<!--this creates an add-on control in the home menu-->
<label>add-on name</label>
<onclick>XBMC.RunScript(C:\Users\Computer or HTPC Name\AppData\Roaming\XBMC\addons\Add-onName\default.py)</onclick>
<icon>special://skin/backgrounds/add-on background picture.jpg</icon>
If you look in most of the possible add-ons you have installed, they have a default.py. however in saying this, I have found that some work and some don't so it's a bit of trial and error Smile