Kodi Community Forum

Full Version: Set <texturenofocus> and <onclick> content string
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
(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.
for <onclick> it should work. (at least $VAR[] does)
EDIT: has to be $INFO[Skin.String(xxx)]