Kodi Community Forum

Full Version: Help please, how I get ID of current focused group?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
$INFO[ControlGroup.HasFocus] is really like what I need?

Need the ID of the currently focused group, looking now at wiki can't find ... :O

Or something like this:

$INFO[Control.GetLabel($INFO[Container().CurrentItem)],7]

As using skinshortcuts, need to get a label with dynamic ID

Seems really odd you can't!?

I can hack a button to set ID, but that is very script kiddy!! Tongue
no idea, i completely fail to understand what you're trying to do ;-)
$INFO[System.CurrentControlID]

But $INFO inside of a $INFO label won't work.
@Fred thanks Big Grin
@ronie nor do I! Big Grin
lol :-)
Am I right, I also can't use $PARAM[IDNAME] in an include content for Control.GetLabel($PARAM[IDNAME])

just tried and doesn't return string ..
Should work if you hardcore it with THOUSANDS of conditions Wink

Something like this:

<include content="ParamName" condition="String.IsEqual(System.CurrentControlID),7000)">
<param name="ID" value="7000"/>
</include>
(2017-01-07, 19:07)sualfred Wrote: [ -> ]Should work if you hardcore it with THOUSANDS of conditions Wink

Something like this:

<include content="ParamName" condition="String.IsEqual(System.CurrentControlID),7000)">
<param name="ID" value="7000"/>
</include>

lol I'll pass thanks @sualfred Big Grin
Checking back, I can't send an $INFO[System.CurrentControlID] as a PARAM? It just sends the content.

Code:
12:30:43.488 T:4804   ERROR: Misplaced [
12:30:43.488 T:4804   ERROR: Error parsing boolean expression Integer.IsGreater(Container($INFO[System.CurrentControlID]).Column,8)
12:30:43.488 T:4804   ERROR: Misplaced [
12:30:43.488 T:4804   ERROR: Error parsing boolean expression Integer.IsGreater(Container($INFO[System.CurrentControlID]).Column,7)

I see the usefullness I think, is there a way to send parsed string, $PARSE[System.CurrentControlID]?