Req Problem opening dialogvideoinfo.xml window from Context Menu
#1
I can't create a command or function that allows me to open the dialogvideoinfo.xml directly by pressing a button on DialogContextMenu.xml

in the DialogContextMenu.xml window I created a button that should open the "information" window, I tried in various ways but I always have the following problems:

if I try to use: <onclick>action(menu)</onclick> it doesn't work and neither does action(info) or other actions.
if I try to use: <onclick>ActivateWindow(12003)</onclick> it works, but it opens the dialogvideoinfo.xml with old and not updated contents on the content currently in focus.

(I already know that it exists and is present in the context menu, but I need it because the "information" button must always be the first selectable element, I don't want to create scripts about it, I hope there is no need).


Can anyone help me, or even tell me that it is not possible?


Thank you all for any help.

Here is the complete code of the button in DialogContextMenu.xml


xml:
​​​​​​​...

<control type="grouplist" id="996">
                <description>grouplist for context buttons</description>
                <defaultcontrol always="true">999</defaultcontrol>
                <left>0</left>
                <top>0</top>
                <width>600</width>
                <height max="780">auto</height>
                <usecontrolcoords>true</usecontrolcoords>
                    <control type="button" id="999">
                        <description>Info button</description>
                        <label>Info</label>
                        <left>0</left>
                        <top>0</top>
                        <width>600</width>
                        <height>85</height>
                        <onup>1000</onup>
                        <ondown>1000</ondown>
                        <onleft>noop</onleft>
                        <onright>noop</onright>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus colordiffuse="button_focus">lists/focus.png</texturefocus>
                        <texturenofocus />
                        <onclick>action(menu)</onclick>
                    </control>
                    <control type="button" id="1000">
                        <left>0</left>
                        <top>0</top>
                        <width>600</width>
                        <height>85</height>
                        <onup>999</onup>
                        <ondown>999</ondown>
                        <onleft>noop</onleft>
                        <onright>noop</onright>
                        <align>center</align>
                        <aligny>center</aligny>
                        <texturefocus colordiffuse="button_focus">lists/focus.png</texturefocus>
                        <texturenofocus />
                    </control>
            </control>
            ...
If i helped you, you can thank me with a thumbs up 👍 below, thanks 🙏.
Kodi stable release | Skin Estuary (by phil65)
I like editing skins ❤
Reply

Logout Mark Read Team Forum Stats Members Help
Problem opening dialogvideoinfo.xml window from Context Menu0