Kodi Community Forum

Full Version: <onclick> query
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is probably a really simple solution but I can't seem to find it.

I just want to define the enter key to an <onclick> how would I do it?

At the moment I have my low list view as such...

Image

Then when I press right it shows some more info...

Image

What I want to be able to do is still select the TV Show when you're viewing the info, rather than having to go back to the list. I'm sure it's just a simple <onclick> but can't figure out what it is :p !

Thanks in advance.
when You show that extra info set <onclick>SendClick(10025,50)</onclick> on some buton You focus
pieh Wrote:when You show that extra info set <onclick>SendClick(10025,50)</onclick> on some buton You focus

Ok I've tried that...

[HTML]
<control type="button" id="7002"> <!--lowlist info-->
<include>HiddenObject</include>
<texturefocus>-</texturefocus>
<texturenofocus>-</texturenofocus>
<onup>SetFocus(50)</onup>
<onleft>SetFocus(50)</onleft>
<onright>SetFocus(9000)</onright>
<ondown>SetFocus(50)</ondown>
<onclick>SendClick(10025,50)</onclick>
<visible>Control.IsVisible(511)</visible>
</control>
[/HTML]

That's what the button code looks like, but when I press enter nothing happens?
Anybody have any other ideas?
Code:
<onclick>PlayMedia($INFO[ListItem.FileNameAndPath])</onclick>
should work.

EDIT: nevermind, tv shows don't work like that