Question :

Question :

Is it possible to catch the pre and post click events on an element like an icon or widget or view, etc.

e.g.

1. Click an icon

2. Display a toast “before launching the app”

3. App starts

4. Display a toast “after launching the app”

]]>

6 Commentsto Question :

  1. Anonymous says:

    < ![CDATA[

    Launch with a script.


    Possible to do anything before and after.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    I don’t see why not but from what I read before Toasts only have 2 values 1 and 0 which means there treated as flags and not durations. Picture this if you click the icon the first toast pops up and before it times out the app will open then the first toast will time out and the next toast will pop up. Seems daft to use 2 toasts you might azwell just use the one. You could delay the app opening but would you really want to? that would be like lag why wait if you don’t have to?



    This is with script btw but im sure it can be done with Tasker and maybe bindings I dunno I still haven’t used them yet.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Jay M Bruno-Isa LAMOUR-ARNOULD​


    Thank you for your time.


    I tried to explain what I’m interested in with a hypothetical example.


    What I wanted to know if there is support for pre and post hooks within LL, so that I can run two scripts, one before launch and one after launch.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    If you want the pre action to be done before the app will launch I think it’s not possible. The post is easy with AutomateIt or Tasker (when app ending)


    Pre could be launched the same when an app is starting but it won’t wait till the app is started

    ]]>

  5. Anonymous says:

    < ![CDATA[

    What I wanted to say is pre hook could be not finished when app is started

    ]]>

  6. Anonymous says:

    < ![CDATA[

    There is the touch event (expert mode). This is the fined grain event handler where you can intercept down, move and up events. Long tap on the setting to get the help and a link on a sample code. You will need to manually launch the app (that is: execute the action for the item), using item.launch();

    ]]>

Leave a Reply

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