Is it possible to execute a script from an other script?
Is it possible to execute a script from an other script?
It would be very helpful to load my “api” files at llx launch…
(I can’t put them all in one file, it would be impossible to support !)
]]>
< ![CDATA[
LL.runScript
]]>
< ![CDATA[
Grrrr why I didn’t saw it…
]]>
< ![CDATA[
The eval() functionn is also a way to execute another script, although slower.
]]>
< ![CDATA[
Is it possible to include a script? And access its variables? Like a frequently used function or an array of color codes
]]>
< ![CDATA[
Figured it out.. eval(LL.getScriptByName(“name”).getText());
]]>
< ![CDATA[
Yes Ren Shore if you make yourself a namespace, with your vars and functions in it!
I don’t know if you’ve seen my api on tasker tasks, in the code you can see how to make a namespace with vars and functions in it 😉
]]>
< ![CDATA[
I haven’t seen it.. Do you have a link?
]]>
< ![CDATA[
here !
https://plus.google.com/102636094682779819959/posts/BouXgWfrtzc
]]>
< ![CDATA[
but you can’t include that script, however you can :
– execute it at desktop load event (and use the functions from any script)
or
– run the script with LL.runScript(“your script”, {}) (I don’t remember, but I think I didn’t try this way)
]]>