Startup Video
#1
Hello

I don't know why it does not work. I just have simplified my code to test only.
It closes Kodi itself.

Startup.xml
xml:

<window>
    <onload>ReplaceWindow(1114)</onload>
    <controls />
</window>
custom_1114_start.xml
xml:

<window type="dialog" id="1114">
    <defaultcontrol always="true">10</defaultcontrol>
    <controls>
        <control type="button" id="10">
            <onfocus>PlayMedia(special://skin/extra/myvideo.mp4,1)</onfocus>
            <onfocus>SetFocus(11)</onfocus>
        </control>
        <control type="button" id="11">
            <onfocus>AlarmClock(Close,Dialog.Close(1114),00:04,silent)</onfocus>
            <onfocus>AlarmClock(Starting,ReplaceWindow($INFO[System.StartupWindow]),00:05,silent)</onfocus>
        </control>
        <control type="group">
            <visible>Player.HasVideo</visible>
            <control type="videowindow">
                <width>$INFO[System.ScreenWidth]</width>
                <height>$INFO[System.ScreenHeight]</height>
            </control>
        </control>
    </controls>
</window>
Reply
#2
I think it's cause you use it as a dialog.

try just
<window id="1114">
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#3
(2021-11-05, 17:03)mardukL Wrote: I think it's cause you use it as a dialog.

try just
<window id="1114">

Thank you, Yes, it works with <window id="1114">.
However, one thing I have faced problem is
When I have installed plexcondiconnect addon, normally it shows plexcondiconnect addon welcome window, then I can continue to set up, but
with this(my code), it will not.
When I removed
Startup.xml
xml:

<window>
        <!-- <onload>ReplaceWindow(1114)</onload> -->
        <controls />
</window>
Then it shows plexcondiconnect welcome window and can continue setting.

I think it needs some condition there but I don't know.
Do you have any idea how to make some conditions to show plexcondiconnect addon setting window after addon installing?
Reply
#4
(2021-11-06, 09:21)kenmoon Wrote:
(2021-11-05, 17:03)mardukL Wrote: I think it's cause you use it as a dialog.

try just
<window id="1114">

Thank you, Yes, it works with <window id="1114">.
However, one thing I have faced problem is
When I have installed plexcondiconnect addon, normally it shows plexcondiconnect addon welcome window, then I can continue to set up, but
with this(my code), it will not.
When I removed
Startup.xml
xml:

<window>
        <!-- <onload>ReplaceWindow(1114)</onload> -->
        <controls />
</window>
Then it shows plexcondiconnect welcome window and can continue setting.

I think it needs some condition there but I don't know.
Do you have any idea how to make some conditions to show plexcondiconnect addon setting window after addon installing?
I fixed by myself.

xml:

<onload condition="!Window.Previous(Home) + !System.HasLoginScreen ">ReplaceWindow(1114)</onload>
<onload condition="Window.Previous(Home) | System.HasLoginScreen ">ReplaceWindow($INFO[System.StartupWindow])</onload>
Reply

Logout Mark Read Team Forum Stats Members Help
Startup Video0