Kodi Community Forum
RunScript(script[,args]*) in KEYMAP - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
---- Thread: RunScript(script[,args]*) in KEYMAP (/showthread.php?tid=326438)



RunScript(script[,args]*) in KEYMAP - jose383 - 2018-01-02

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


RE: RunScript(script[,args]*) in KEYMAP - trogggy - 2018-01-02

Code:
<one>RunScript(script.addonname, 1)</one>



RE: RunScript(script[,args]*) in KEYMAP - jose383 - 2018-01-02

(2018-01-02, 22:34)trogggy Wrote:
Code:
<one>RunScript(script.addonname, 1)</one>
It works thank you!


This forum uses Lukasz Tkacz MyBB addons.