ERROR: Unable to locate window with id: But everything is in place......
#1
HI,

I am hoping someone can help as this.

I have made a simple copy of an existing dialog but created a new window ID for it, and saved as /home/pi/.xbmc/addons/skin.amber/1080i/Dialog633.xml

PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<window id="6331" type="dialog">
  <defaultcontrol always="true">10</defaultcontrol>
  <include>OpenClose</include>
  <controls>
    <include>DimBG</include>
    <control type="group">
      <animation type="WindowOpen">
        <effect type="fade" start="0" end="100" time="240" />
        <effect type="zoom" tween="cubic" easing="out" start="30" end="100" center="960,660" time="240" />
      </animation>
      <animation type="WindowClose">
        <effect type="fade" start="100" end="0" time="140" />
        <effect type="zoom" tween="cubic" easing="in" start="100" end="30" center="960,660" time="140" />
      </animation>
      <posx>429</posx>
      <posy>500</posy>
      <control type="image" description="Dialog BG">
        <posx>0</posx>
        <posy>0</posy>
        <width>1062</width>
        <height>330</height>
        <texture border="45">dialogs/TinyDialog.png</texture>
      </control>
      <control type="label" id="1" description="Heading">
        <posx>51</posx>
        <posy>40</posy>
        <height>40</height>
        <width>960</width>
        <textcolor>Orange</textcolor>
        <align>center</align>
      </control>
      <control type="textbox" id="9" description="Labels">
        <posx>51</posx>
        <posy>100</posy>
        <width>960</width>
        <height>96</height>
        <align>center</align>
        <font>ListDetails</font>
        <autoscroll time="3000" delay="4000" repeat="5000">true</autoscroll>
      </control>
      <control type="button" id="10" description="OK">
        <posx>381</posx>
        <posy>230</posy>
        <height>60</height>
        <width>300</width>
        <label>$LOCALIZE[186]</label>
        <align>center</align>
        <pulseonselect>true</pulseonselect>
      </control>
    </control>
  </controls>
</window> 

However when I try to open the window with:

PHP Code:
xbmc.executebuiltin('xbmc.ActivateWindow(6331)'

I recieve error:

PHP Code:
ERRORUnable to locate window with id 6331.  Check skin files 
Reply
#2
check the wiki article on creating custom windows:
http://kodi.wiki/view/HOW-TO:Add_a_new_w...m_xml_file
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
(2014-12-27, 15:57)ronie Wrote: check the wiki article on creating custom windows:
http://kodi.wiki/view/HOW-TO:Add_a_new_w...m_xml_file


Tried that, however I seem to have it working by utilising only the numbers in the given custom range and conforming the name of the xml to custom_xxxxx.xml (lowercase)

Neither of which should make a difference IMHO but they do.

Frustrating......
Reply
#4
(2014-12-27, 20:09)catkinso Wrote:
(2014-12-27, 15:57)ronie Wrote: check the wiki article on creating custom windows:
http://kodi.wiki/view/HOW-TO:Add_a_new_w...m_xml_file


Tried that, however I seem to have it working by utilising only the numbers in the given custom range and conforming the name of the xml to custom_xxxxx.xml (lowercase)

Neither of which should make a difference IMHO but they do.

indeed. they do. :-)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
ERROR: Unable to locate window with id: But everything is in place......0