Hi, not sure if it’s a bug or just me doing something wrong, but if i try to select run a script from swipe up or…
Hi, not sure if it’s a bug or just me doing something wrong, but if i try to select run a script from swipe up or down gesture in desktop settings then I get a force close. If I try the same from Lightning settings then it will let me select my script but won’t execute it.
]]>
< ![CDATA[
Which action is currently selected in those events?
]]>
< ![CDATA[
You mean before I change them? In desktop settings they are on launch a shortcut and in
Lightning settings they are on lock (Do nothing)
]]>
< ![CDATA[
Which shortcut?
]]>
< ![CDATA[
Not sure I’m afraid. I don’t recall setting it before and it doesn’t launch anything so I don’t know if there is another way to find out?
I have tried changing it to lock then trying to select run a script after that with the same results if that is of any help. Also, when it closes I’m sent to my phones task switcher.
]]>
< ![CDATA[
Could you run this small script? It will show a pop-up with a text, copy it and paste it here
prompt(“”,LL.getCurrentDesktop().getProperties().getEventHandler(“swipeUp”).getData()+”\n”+LL.getCurrentDesktop().getProperties().getEventHandler(“swipeDown”).getData())
]]>
< ![CDATA[
Here is what I got:
task:Swipe Up#Intent;action=net.dinglisch.android.tasker.WIDICKYUM;component=net.dinglisch.android.taskerm/.IntentHandler;S.mcro=%3CTask%20sr%3D%22%22%3E%3Cid%3E-5%3C%2Fid%3E%3CImg%20sr%3D%22icn%22ve%3D%222%22%3E%3Cnme%3Ecust_transparent%3C%2Fnme%3E%3C%2FImg%3E%3Cnme%3ESwipe%20Up%3C%2Fnme%3E%3Crty%3E2%3C%2Frty%3E%3CAction%20sr%3D%22act0%22ve%3D%227%22%3E%3CStr%20sr%3D%22arg0%22ve%3D%223%22%3ESwipe%20Up%3C%2FStr%3E%3CInt%20sr%3D%22arg1%22val%3D%227%22%2F%3E%3CStr%20sr%3D%22arg2%22ve%3D%223%22%2F%3E%3CStr%20sr%3D%22arg3%22ve%3D%223%22%2F%3E%3CStr%20sr%3D%22arg4%22ve%3D%223%22%2F%3E%3CInt%20sr%3D%22arg5%22val%3D%221%22%2F%3E%3Ccode%3E130%3C%2Fcode%3E%3C%2FAction%3E%3Ccdate%3E1448881958665%3C%2Fcdate%3E%3Cedate%3E1448881958665%3C%2Fedate%3E%3C%2FTask%3E;end
task:Swipe Down#Intent;action=net.dinglisch.android.tasker.WIDICKYUM;component=net.dinglisch.android.taskerm/.IntentHandler;S.mcro=%3CTask%20sr%3D%22%22%3E%3Cid%3E-6%3C%2Fid%3E%3CImg%20sr%3D%22icn%22ve%3D%222%22%3E%3Cnme%3Ecust_animal_fox%3C%2Fnme%3E%3C%2FImg%3E%3Cnme%3ESwipe%20Down%3C%2Fnme%3E%3Crty%3E2%3C%2Frty%3E%3CAction%20sr%3D%22act0%22ve%3D%227%22%3E%3CStr%20sr%3D%22arg0%22ve%3D%223%22%3ESwipe%20Down%3C%2FStr%3E%3CInt%20sr%3D%22arg1%22val%3D%227%22%2F%3E%3CStr%20sr%3D%22arg2%22ve%3D%223%22%2F%3E%3CStr%20sr%3D%22arg3%22ve%3D%223%22%2F%3E%3CStr%20sr%3D%22arg4%22ve%3D%223%22%2F%3E%3CInt%20sr%3D%22arg5%22val%3D%221%22%2F%3E%3Ccode%3E130%3C%2Fcode%3E%3C%2FAction%3E%3Ccdate%3E1448881980847%3C%2Fcdate%3E%3Cedate%3E1448881980847%3C%2Fedate%3E%3C%2FTask%3E;end
]]>
< ![CDATA[
Wow.
You said that selecting first do nothing and then run a script doesn’t work.
What if you select launch a shortcut/any shortcut, and then you try to select run a script?
]]>
< ![CDATA[
I get the same result. I tried changing shortcuts for both up and down gestures as well. The output from re-running your script confirmed that the changes had taken place.
]]>
< ![CDATA[
Pierre Hébert will like to see this I guess
]]>
< ![CDATA[
OK! Thanks for your time and help Triangulo, I really appreciate it. Plus I’ve learned something useful from your script 🙂
]]>
< ![CDATA[
Just another think to try: does it crash with all scripts or only with a specific one?
]]>
< ![CDATA[
Ah-ha, success! I’ve just set all swipe actions to unset in both lightning and desktop settings, re-running your script returned null for both gestures and now I can set a script and it runs.
Oh, and it was crashing when I selected the option to run a script, before the script selection prompt could pop up
]]>
< ![CDATA[
I think this is a known bug where data for the previous event configuration where incorrectly used for the new configuration. In theory it should be relatively easy to fix but I couldn’t pinpoint the exact issue yet.
]]>
< ![CDATA[
Ah! Thanks Pierre, at least I haven’t broken anything.
]]>
< ![CDATA[
I am the only one who can brake the app, lol 🙂
]]>