Hi all

Hi all,

I’ve been toying with scripts lately and I’m wondering if there’s any way to trigger an item long press action by script. I already know that I can launch a shortcut, but I can’t find something related to the other gestures.

Thanks for your help

]]>

16 Commentsto Hi all

  1. Anonymous says:

    < ![CDATA[

    I uninstalled the launcher due too poor support, but if I remember correctly you can go to the object’s events and there you’ll find long tap

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Rudolph van Coppenhagen poor support really ? Guys are helping very well here



    Yann : assign Running a script in any Event you want 🙂

    ]]>

  3. Anonymous says:

    < ![CDATA[

    My question is how to run the action linked to a specific gesture from a script, not the reverse (I already know how to launch a script from any gesture). Sorry if that wasn’t clear. English is not my primary language.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Bruno-Isa LAMOUR-ARNOULD​ help is in abundance with basic stuff anyone can figure out within the first week, but the more advanced topics like the lightning launcher specific classes (to name one) is hopeless

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Rudolph van Coppenhagen TrianguloY​ is always there for advanced questions and classes.

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Yann Perrin please explain in French if easier for you.

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Well, always always…I can’t be here all the time.



    Yann Perrin​, with an item long press you mean you want to launch the lightning item menu (the one that appears by default when you long tap) or you want to launch the long tap event the user configured in the item?

    ]]>

  8. Anonymous says:

    < ![CDATA[

    No worries guys. I know we all have our own lives and jobs and family and everything. But Pierre unfortunately can’t use that excuse because he is the developer. His product, so he needs to either up the documentation or support it better.



    Anyway, I am done hi-jacking this thread.

    ]]>

  9. Anonymous says:

    < ![CDATA[

    Rudolph van Coppenhagen I think I provided some good input, but what you asked me was to write a script for you. That’s not that I don’t want to do that, but I can’t develop software just for fun all the time (and my time is short).


    ref: https://plus.google.com/111475517256600049695/posts/ioNA9Ty7CRi



    Yann Perrin you could retrieve the action configured for the item using PropertySet.getEventHandler(‘i.longTap’) and then run it using Screen.runAction.


    At the moment runAction does not accept a EventHandler as argument so you will have to split it in action+data, and manually loop over the next action if any.


    There’s something else you could try, call:


    item.getRootView().performLongClick();

    ]]>

  10. Anonymous says:

    < ![CDATA[

    TrianguloY I want to launch the long tap event the user configured in the item. By the way, thanks for being there, helping people like me ☺

    ]]>

  11. Anonymous says:

    < ![CDATA[

    Pierre Hébert thanks, I’ll try that. And thanks for your hard work on Lightning Launcher

    ]]>

  12. Anonymous says:

    < ![CDATA[

    Bruno-Isa LAMOUR-ARNOULD merci pour ton aide, je pense que j’ai ma réponse maintenant

    ]]>

  13. Anonymous says:

    < ![CDATA[

    Pierre Hébert​ no i didn’t ask you to write a script for me and I would never, because then I will never learn. I needed you to tell me if I was using your classes correctly and whether it was possible to create the preferences using an array. Blah blah blah etc etc etc…


    It’s funny that you say you dont have time, but you have time to read the post, just not reply.


    Even a “sorry dude, i refuse to help you because i am busy” would have sufficed but you chose to ignore me. And frankly i’ve seen that happen alot in this “support” group.


    The time, dedication and sacrifice it takes to develop and then support software was something you should have thought about before you developed it and sold it to people.

    ]]>

  14. Anonymous says:

    < ![CDATA[

    Rudolph van Coppenhagen your comment is rude. I always received good help here. Ask TrianguloY when deep help needed on scripting

    ]]>

  15. Anonymous says:

    < ![CDATA[

    It’s not rude when it’s true

    ]]>

  16. Anonymous says:

    < ![CDATA[

    Rudolph van Coppenhagen a lot of people (including pierre) spend their free time in this community to help others. If you do not like it, leave. But stop the hate.

    ]]>

Leave a Reply

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