View Single Post
Old 08-02-2016, 07:49 AM   #6
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Something I am sure you know . . .

Those scripts are not on the consumer version firmware so you will have to re-invent them for your extension so as not to re-distribute Amazon code.
But they will contain the system indexer control commands.

Note:
Lua is pre-installed on all 5.x firmwares and you can 'exec' a Lua script from the KUAL control files rather than call a shell script.
Ah...
That isn't specific to Lua, KUAL control files can either call or exec any executable code, the calling an external shell script is only tradition here.

Translation:
If the control script is just a simple system control command - stick the system control command directly in the menu.json command line of KUAL.
If the command requires arguments, use the 'params' field of menu.json command line.

- - - -

I.E: There is a lot of flexibility in how you chose to 'not duplicate Amazon code'.

PS: Sorry for stealing the ;log searchbar command - but we put a 'dispatcher' script on it, so you can put your 'hide books' calls into the 'dispatcher' script.
I don't recall if anyone PM'd you about doing that last month, it was a hectic few days.

Last edited by knc1; 08-02-2016 at 08:11 AM.
knc1 is offline   Reply With Quote