Set <texturenofocus> and <onclick> content string
#1
Hi, i tried to find some info about this but didn't find anything, so, is it possible to set <texturenofocus> and <onclick> from script??
I tried different approaches like:

default.py
xbmc.executebuiltin("Skin.SetString(txtNFImg, menu-user.png)
xbmc.executebuiltin("Skin.SetString(onclickEvent, RunScript(script.test))

myDialog.xml
<texturenofocus>$INFO[Skin.String(txtNFImg)]</texturenofocus>
<onclick>$INFO[Skin.String(onclickEvent)]</onclick>

OR

myDialog.xml
<texturenofocus>Skin.String(txtNFImg)</texturenofocus>
<onclick>Skin.String(onclickEvent)</onclick>

But none of them worked.

Any help please!
Reply
#2
(2015-05-27, 12:23)jdourado Wrote: Hi, i tried to find some info about this but didn't find anything, so, is it possible to set <texturenofocus> and <onclick> from script??

nope, you can't use $INFO[] labels for those tags.
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
for <onclick> it should work. (at least $VAR[] does)
EDIT: has to be $INFO[Skin.String(xxx)]
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply

Logout Mark Read Team Forum Stats Members Help
Set <texturenofocus> and <onclick> content string0