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 !)

]]>
« (Previous Post)
(Next Post) »

9 Commentsto Is it possible to execute a script from an other script?

  1. Anonymous says:

    < ![CDATA[

    LL.runScript

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Grrrr why I didn’t saw it…

    ]]>

  3. Anonymous says:

    < ![CDATA[

    The eval() functionn is also a way to execute another script, although slower.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Is it possible to include a script? And access its variables? Like a frequently used function or an array of color codes

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Figured it out.. eval(LL.getScriptByName(“name”).getText());

    ]]>

  6. Anonymous says:

    < ![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 😉

    ]]>

  7. Anonymous says:

    < ![CDATA[

    I haven’t seen it.. Do you have a link?

    ]]>

  8. Anonymous says:

    < ![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)

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *