Need help using Skin.SetString
#1
I'm trying to add a keyboard function in the skin settings to set the content field but can't seem to get it to work.

Code:
<item id="70" description="Home Video edit">
     <label>Edit Video link</label>
     <onclick>Skin.SetString(videolink1)</onclick>
</item>

here is the content target

Code:
<content target="video">$VAR[videolink1]</content>

Any help on this would be great thanks!
Reply
#2
I dont see you passing a value to the string? Like Skin.SetString(videolink1, plugin...or videos/action.. or such)

Also shouldn't the content be $INFO [skin.string (videolink1)]?

I might be mistaken.. There are a bunch of rabbitholes in Kodi :-)
Reply
#3
i'm trying to get the user to put there own value when the keyboard comes up
maybe i'm doing it all wrong

INFO will not bring up the keyboard to set the value
Reply
#4
(2016-04-23, 16:25)Mikewave Wrote: i'm trying to get the user to put there own value when the keyboard comes up
maybe i'm doing it all wrong
Skin.SetString(videolink) is fine as soon as you want to get keyboard entry. However, what's the content of $VAR ? If you want to get the string value, Torben's right, replace it by $INFO[Skin.String(videolink1)] ... but you have to set correctly the full vfs path.
[Skin] KOver - V1.1.0 Stable (Repo version)
[WIP] ReKOver - Skinning tool project

If I've been helpful or you like my work, hit "THANK USER" button ;) ...
Reply
#5
I'll give that a try thanks
Reply
#6
Awesome that works
Reply
#7
:-D
Reply

Logout Mark Read Team Forum Stats Members Help
Need help using Skin.SetString0