2018-11-05, 19:20
2018-11-05, 21:38
Add the following code to a simple text file renamed to autoexec.py and place it in the Userdata file in the same location as advancedsettings.xml, guisettings.xml, etc
Restart Kodi.
xml:import xbmc
xbmc.executebuiltin('ActivateWindow(Favourites)')
Restart Kodi.
2018-11-05, 21:39
Because it's not actually a window but a dialog that can be opened in any window.
2018-11-05, 23:37
(2018-11-05, 21:38)Karellen Wrote: Add the following code to a simple text file renamed to autoexec.py and place it in the Userdata file in the same location as advancedsettings.xml, guisettings.xml, etcIt worked, but not as I expected. it opens favorites window in edit mode
xml:import xbmc
xbmc.executebuiltin('ActivateWindow(Favourites)')
Restart Kodi.
I was thinking if there was a way to change the order of the menu items (Add-ons, Videos, Favorites, Weather, etc.) To place Favorites as the first item, then, Favorites would look like the Main Window
2018-11-05, 23:46
Left image is the favourites dialog on the home window; second image is the home menu favourites widget. Two different things.
Add an onload control to Home.xml and adjust the second value to match the Favourites item in your home list.
Add an onload control to Home.xml and adjust the second value to match the Favourites item in your home list.
xml:<?xml version="1.0" encoding="UTF-8"?>
<window>
<defaultcontrol>9000</defaultcontrol>
<backgroundcolor>background</backgroundcolor>
<onload>SetFocus(9000,8)</onload>
<controls>
2018-11-06, 00:32
so this is as easy as just redoing menu in home.xml
<item>
<label>$LOCALIZE[10134]</label>
<onclick>ActivateWindow(favourites)</onclick>
<property name="menu_id">$NUMBER[14000]</property>
<thumb>icons/sidemenu/favourites.png</thumb>
<property name="id">favorites</property>
<visible>!Skin.HasSetting(HomeMenuNoFavButton)</visible>
</item>
place a first item
<item>
<label>$LOCALIZE[10134]</label>
<onclick>ActivateWindow(favourites)</onclick>
<property name="menu_id">$NUMBER[14000]</property>
<thumb>icons/sidemenu/favourites.png</thumb>
<property name="id">favorites</property>
<visible>!Skin.HasSetting(HomeMenuNoFavButton)</visible>
</item>
place a first item
2018-11-06, 01:50
Thanks, I can organize the menu items from Home.xml, it was so easy, the hard part was knowing what file to modify and where to find it. Thanks thanks
2018-11-06, 20:24
Am not getting anything trying this ?
Am clearly doing this wrong.
<onload>SetFocus(9000,8)</onload>
adjust the second value to match the Favourites item in your home list
"Favourites" in home.xml is 14000 or $NUMBER[14000]
so assuming that by "second value " you mean 9000,8 or 8 ?
I have tried ,
<onload>SetFocus(14000)</onload>
<onload>SetFocus(9000,14000)</onload>
<onload>SetFocus(9000,$NUMBER[14000])</onload>
<onload>SetFocus($NUMBER[14000])</onload>
<onload>$NUMBER[14000]</onload>
<onload>SetFocus(ActivateWindow(10025,"plugin://plugin.video.****/?action=movieWidget",return)</onload>
<onload>(ActivateWindow(10025,"plugin://plugin.video.****/?action=movieWidget",return)</onload>
its obviously a simple line but am not getting my head around it Hitcher ?
Please.
Am clearly doing this wrong.
<onload>SetFocus(9000,8)</onload>
adjust the second value to match the Favourites item in your home list
"Favourites" in home.xml is 14000 or $NUMBER[14000]
so assuming that by "second value " you mean 9000,8 or 8 ?
I have tried ,
<onload>SetFocus(14000)</onload>
<onload>SetFocus(9000,14000)</onload>
<onload>SetFocus(9000,$NUMBER[14000])</onload>
<onload>SetFocus($NUMBER[14000])</onload>
<onload>$NUMBER[14000]</onload>
<onload>SetFocus(ActivateWindow(10025,"plugin://plugin.video.****/?action=movieWidget",return)</onload>
<onload>(ActivateWindow(10025,"plugin://plugin.video.****/?action=movieWidget",return)</onload>
its obviously a simple line but am not getting my head around it Hitcher ?
Please.
2018-11-06, 23:06
It refers the item 9th in the list. 9th because the first is numbered 0 by Kodi.
2022-01-06, 14:51
Hello. I used this useful little code on Leia but it's not working on Matrix 19.3 😭
Any solution ?
Thanks!
Any solution ?
Thanks!
2022-01-06, 20:57
(2022-01-06, 14:51)Azertix Wrote: Hello. I used this useful little code on Leia but it's not working on Matrix 19.3Which code? If it was the autoexec.py code, then it won't work in v19 as it was changed for security reasons.
Same code but you need to create it slightly differently. See... https://kodi.wiki/view/Autoexec_Service
2022-01-07, 00:30
Hello Karellen. Ups, i forget the quote 🙄
It's your little code : https://forum.kodi.tv/showthread.php?tid...pid2789159
I used it on Leia 👍🏼 but doesn't work on Matrix 😭
It's your little code : https://forum.kodi.tv/showthread.php?tid...pid2789159
I used it on Leia 👍🏼 but doesn't work on Matrix 😭