two questions for the scripting experts here:

two questions for the scripting experts here:

1. what is the best way to introduce a “wait time” or delay of a few seconds in a script?

2. when sending an intent using startActivity, is it possible to use the format “intent:#Intent;action=ACTION,package=PACKAGE …”? what is the correct syntax for sending an intent this way?

thanks! tried looking through this forum but couldn’t find any answers …

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

4 Commentsto two questions for the scripting experts here:

  1. Anonymous says:

    < ![CDATA[

    I usually use setTimeout for delays.


    lightninglauncher.com – Lightning

    ]]>

  2. Anonymous says:

    < ![CDATA[

    thank you! just tried that and it worked for me. any thoughts on the second question? i’d like to launch a shortcut using script, but it is not a launcher-recognized shortcut, so i only have the intent available (pulled from LL data folder)

    ]]>

  3. Anonymous says:

    < ![CDATA[

    As for 2: Use Intent.parseUri(your string, Intent.URI_INTENT_SCHEME)

    ]]>

  4. Anonymous says:

    < ![CDATA[

    that worked for me but I had to change the Intent.URI_INTENT_SCHEME to the value 0. thanks!

    ]]>

Leave a Reply

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