Kodi Community Forum

Full Version: RunScript(script[,args]*) in KEYMAP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to launch a script with an argument, but I do not get it,
what's the proper way?
I want to execute the script with a "1" as argument
List_of_built-in_functions (wiki)
I have tried this:
Code:
<keymap>
<global>
<keyboard>
<one>RunScript(script.addonname)</one>
<two>RunScript(script.addonname[1])</two>
<three>RunScript(script.addonname[,1])</three>
<four>RunScript(script.addonname[,1]*)</four>
</keyboard>
</global>
</keymap>
Pressing key one, the script is executed, which means that the id is correct
Code:
<one>RunScript(script.addonname, 1)</one>
(2018-01-02, 22:34)trogggy Wrote: [ -> ]
Code:
<one>RunScript(script.addonname, 1)</one>
It works thank you!