Autoclose WindowDialog or WindowXML
#1
Hello.
It is a way to auto close created WindowDialog or WindowXML after a certain time if no activity?
Reply
#2
I found answer.
Using WindowXMLDialog:

Code:
<window id="11111">
    <defaultcontrol always="true">11020</defaultcontrol>
    <controls>
        <control type="button" id="11020">
            <description>Share</description>
            <posx>40</posx>
            <posy>50</posy>
            <width>440</width>
            <height>40</height>
            <label>Share on Facebook</label>
            <onfocus>PreviousMenu</onfocus>
            <animation effect="fade" end="100" delay="5000">Focus</animation>
        </control>
    </controls>
</window>

Window close after 5sec.

It is a way to pass animation delay parameter from script or settings.xml? I try using $INFO[Window(Home).Property(fade_time)] and set this propery in script but did not work.
Reply
#3
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
#4
Nice solution! You can probably use another trigger. Have a conditional animation instead of the onfocus and have the delay in the scriot?
Reply

Logout Mark Read Team Forum Stats Members Help
Autoclose WindowDialog or WindowXML0