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 …
]]>
< ![CDATA[
I usually use setTimeout for delays.
lightninglauncher.com – Lightning
]]>
< ![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)
]]>
< ![CDATA[
As for 2: Use Intent.parseUri(your string, Intent.URI_INTENT_SCHEME)
]]>
< ![CDATA[
that worked for me but I had to change the Intent.URI_INTENT_SCHEME to the value 0. thanks!
]]>