Kodi Community Forum

Full Version: $INFO use inside keyboard.xml
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I'm trying to configure the keyboard.xml in order to open a Help-File (PDF) when the 'h' button is pressed.
I added the <h>XBMC.Exec("...")</h> line and it is opening the pdf.
Now I was trying to use $INFO[System.CurrentWindow] inside the Exec (in order to pre-set the search of the pdf with the current window -
in this way I could have a dynamic, contextualized help)
So it became:
<h>XBMC.System.ExecWait(""C:\AS_Help.js" $INFO[System.CurrentWindow]")</h>
where AS_Help is a js accepting the currentwindow as parameter.

Everything worked except the fact that $INFO is not substituted by its value, it remains '$INFO[System.CurrentWindow]'.
Can the $INFO only be used inside e.g. the IncludesHomeMenuItem.xml (here it worked) and not inside the keyboard.xml?

I'm no expert of python (not at all) so is that's the way to go?
Any work-around?

Thanks