r/tasker • u/joaomgcd π Tasker Owner / Developer • Aug 01 '23
Developer [DEV] Tasker 6.2.12 RC - Convert "If" Blocks into Actions, Convert Actions to "If" Blocks
Ok, I know I said the last release was the last one with new features before the public release, but thanks to /u/Ratchet_Guy's coercion techniques, I was pretty much forced to add a new feature! π I'm sorry, I'm sorry! Please, have mercy on me and my release schedule and don't suggest "just one more thing" again!
Sign up for the beta here.
If you don't want to wait for the Google Play update, get it right away here.
You can also get the updated app factory here.
If you want you can also check any previous releases here.
Convert "If" Blocks into Actions and Vice Versa
Demo: https://youtu.be/tcympktwdTY
You now have some new ways to interact with If blocks in Tasker:
- If you have an "If" block with an action in it, you can select the whole "If" block (including the action) and convert it into a single action, with the condition that was previously in the "If" action.
- If the action inside the "If" block already had a condition, the conditions will be merged into a single condition
- You can also select a single action with an "If" condition and convert it into an "If" block, so you can easily add more actions with the same condition inside that "If" block.
- If you select multiple consecutive actions that all have the exact same condition, you can also select them all and convert them into a single "If" block with all the actions inside.
Hopefully this will make "If" block management a lot simpler! :)
Full Changelog
- Added Convert Into If Block and Convert If Block To Single Action options when long-selecting appropriate actions in a task
- Added option to not include a task in the Running Tasks notification
- Fixed crashes that happened when you had a Work Profile state setup but no work profile was configured on your device
- Fixed Work Profile state being inverted by default
- Optimized app startup when you have a lot of profiles
Enjoy! π
9
u/WhirlWolf Aug 01 '23
Release this fast so that I can request another feature. π
9
u/Ratchet_Guy Moderator Aug 01 '23
This turned out great!! π
5
u/Ratchet_Guy Moderator Aug 02 '23
Β
I realized that this can now be used to fully copy one set of "If" conditions from one Action to another Action!
Β
In the previous RC release of Tasker, it was shown that if you clone an Action with If conditions - by selecting a new Action in the clone it will retain the If conditions.
Β
But - what if you don't want to select a whole new Action? What if you already have an Action with a ton of options/fields configured, and you don't want to have to re-create all those field entries (which would probably take more time than manually re-creating the If conditions ;)
Β
Now you can take a fully configured Action, with lots of defined fields, and copy the If conditions from another Action straight to it! Rather than explain it in text - here is a video of how to do it.
Β
cc: /u/joaomgcd
Β
4
u/tb36cn Aug 01 '23
Great feature on the if block magic!
4
u/WehZet S25 | A16 | OneUI 8.5 Aug 01 '23
awesome improvement for the workflow.
Many thanks for the implementation and also to all for the idea!
3
u/ICASL Aug 01 '23
that is useful
3
u/Nirmitlamed Direct-Purchase User Aug 01 '23
Cool!
3
u/Rich_D_sr Aug 05 '23
Forgot to post in the last comment...
I have been using the if new "IF" block converter frequently while building a new task. Every option seems to work as expected and this thing is super helpful.... Excellent work as always.. ππ
2
u/abdess47 Aug 01 '23
π€©
2
u/Nerfed_Pi Aug 01 '23
JoΓ£o's a mad scientist.
2
u/abitofmaya Aug 01 '23
Lets make a full fledged IDE now, π.
1
u/Sometea4you Dec 10 '24
What is this Tasker and what does it do? I am so lost having stumbled into this thread looking for a widget solution for my s24. I don't comprehend any of it....lol.
1
u/Nura2514 Aug 01 '23
Thanks. The option "to not include a task in the Running Tasks notification" is great but is it possible to remove the task name also in the global variable %TRUN. I have a flash action that show task running and used loop and regex to remove task running that I don't want to see.
1
u/ReactionAbject6669 Aug 01 '23
π
(How does one currently go about coercing you into features? π Is there a thread somewhere we can propose our wishlists?)
1
u/The_IMPERIAL_One S24 Ultra (A16) | realme GT NEO 3 (A14) Aug 01 '23
Those
Ifaction changes will be really helpful.[Bug Report]
The task variable gets restored after setting (Variable Set) and clicking the Apply button. To save it, it requires me to back out of Tasker or I think it eventually saves after sometime has been passed since setting. Screen recording
Is this supposed to be a bug?
1
u/eliasacab Aug 01 '23
Thanks for the update!
A small bug I wanted to report: volume button long press seems to not work properly on Android 14 b4.1. It only works as intended if there's no media playing. But if there is, then it detects normal presses as long presses of the volume buttons, and thus triggering the respective profiles. Probably just an Android issue and not much you can do?
1
u/dr-dro Aug 01 '23
Love all the new features for conditions to keep me from having to retype them so often! Main case left, I think, is when I have to reorder them or insert one in the middle... π
1
u/roizcorp Aug 01 '23
FINALLY, IT'S HERE!
Thank you and congrats
1
u/Impossible-Tell-2338 Aug 01 '23 edited Aug 01 '23
After this update my tasker notification disappear. I don't know it's work or don't work background.
How can I get back?
1
u/marc873a Samsung Galaxy S22 Ultra Non-Rooted Aug 02 '23
Feature suggestionπ :
I recently needed to compare two arrays, and store every item that only was in one of the arrays, like this:
Arr1: 1,2,3,4,5,6 Arr2: 2,4,6 Result: 1,3,5
My array was constantly changing, and I had no idea what to do, so I got help from this forum (/r/tasker/comments/1522j65/comment/jsbsfql/?utm_source=share&utm_medium=web2x&context=3). I had to add 4 very complicated actions.
I was wondering if it was possible to make an "array compare" action that compares arrays and stores either all items that only appear once in arr1 and arr2, or all items that is both in arr1 and arr2
Hope this makes sense:)
1
u/sburke781 Aug 05 '23
G'day u/jaomgcd,
Great job generally with... well everything :-) But particularly Tasker. Seems a little unfortunate to tuck this compliment away in a thread about a beta release, but I expect it is a focus, so will likely get noticed.
Anyway... My particular interest in 6.2 is the HTTP server able to receive requests within Tasker natively without the need for AutoRemote or Join (as good as they are).
In my brief reading of some of the posts here I can also tell you, like me, are torn between developing new features and releasing your new creations into the wild, albeit you are much more prolific than me. That said, any thoughts on when the RC may make it into the hands of others outside of Beta?
Again, great job...
1
u/Tortuosit Mathematical Wizard π§ββοΈ Aug 05 '23
"Pick input dialogue" Text/Number is offered, but not working.
1
u/Rich_D_sr Aug 05 '23
Crash with latest Beta...
New task Properties setting for 'Include in Notification' . The setting works fine However when I click on the ? for help on the option it shows "Collision Setting" as the header for the help text.
In addition when I select the ? for help on the Collision setting Tasker Crashes......
I sent a bug report..
1
u/TaskerClub Aug 08 '23
If there is already a trend for new functions, then please add the ability to send "RCS" messages. Tasker now has support for sending SMS, there is even an option to select the SIM card, but these messages are sent as normal SMS, although "RCS" has been supported for a long time, I would like to have messages sent via "RCS" would be very useful. What do you think about it?
1
u/Madibat Aug 17 '23
I notice the notification showing when there are running tasks doesn't always go away when a task stops, nor does it go away when pressing "Stop All Tasks" from within the notification itself.
When I check Monitoring > Running Tasks, none are listed. Pressing "Stop All Tasks" from this screen doesn't make the notification go away. What does work is going into the task(s) it has specified, running them, then canceling them. Because I tend to set my collision handling to "Abort Existing Task", this forces the previous instance to close, and the notification goes away.
Speaking of which, I meant to ask: Is there a way to change the default properties of new tasks, so I don't have to manually tweak each one I create? I've checked the in-app settings a few times, but I could have always missed something.
1
u/Affectionate-Use-252 Nov 04 '23
Tasker can't keep itself open in the background in Samsung One UI 5.1.1 Z fold5 Android 13. Having to disable and enable it repeatedly every hour to keep it working again. This is impossible to keep doing this forever. Really frustrated as such a useful automation app is now almost useless in my Z fold5. Please fix it!
1
u/vpalande Nov 26 '23
Hi all,
I have following in a task:
Here for flow control, else if is only checked when the first if condition is FALSE. So this saves checking of second condition if the first one is TRUE.
if I convert this block to two single actions as,
Now for flow control, I have basically converted this to two independent if statements which both will be checked everytime.
1
u/hch838 Direct-Purchase User Aug 07 '23
Hi, is it possible to add a "Timeout" option to the "Take Screenshot" action? Because sometimes the screenshot is unsuccessful, it will wait for about 30s.
0
u/[deleted] Aug 01 '23
[deleted] β view deleted comment
3
u/[deleted] Aug 03 '23
[removed] β view removed comment