Hey guys just wanted to share some tips I've found.
1. If the action you're looking for isn't within Taskers list of actions. There's a good chance that "Custom Setting" will accomplish what you're trying to do. You can control almost anything with Custom Settings and control settings that usually requires ADB to accomplish. Check it out.
2. If you're unsure how to do something, check out other projects. Usually you can find new and complex patterns that help make sense of a situation.
3. To make your dialogs and fonts look good and stand out, use html tags.
Example: <b><font color=green>This text will be green and bold</font></b>
4. AutoTools and AutoInput is a must have plugin for any Tasker enthusiast, however the rest can be ignored as most of them have been implemented into Tasker over the years except maybe AutoNotifications if what you're trying to do involves Notifications.
5. There's a 99% chance anything you want to accomplish can be done using Tasker. You just need to dig deep to find the method of accomplishing it.
6. Be sure to give Tasker WRITE_SECURE_SETTINGS permission and any other adb specific permission. It's a one time thing and gives Tasker tons of power.
7. When creating open source projects you intend to share publicly, try to use as few plugins as possible. If there's a native Tasker method, use it. Use as few permissions as possible. Use Tasker's native command options instead of AutoApps.
8. The better you understand variables and arrays, the more you'll be able to do. Once you understand loops (if, for, etc) and variables, you're ready to start making projects. Always use local variables unless a global variable is required. Use project variables instead of global variables if the variable in question is only used within the same project. Global variables should only be used when you need to use it's value universally across Tasker. Take note, that once you start using an action that requires dynamic monitoring, Tasker will always monitor that action requiring more memory use.
Related
Hello everyone,
I want an event to trigger such that whenever a text is shared from any app (context) by using the SHARE button , say Chrome browser or Opera mobile, a sound should PLAY (task). how do I achieve the event trigger?
Many thanks for helping.
The plugin AutoInput has a "UI Action" Event trigger, that you can configure to detect anything that is clicked on in the AI, then in the linked task you can check its "name" or "id" in the variable %aitext or %aiid,
However, to prevent the Event from triggering anytime you press anything all day long, you should add an "App" context to the Profile to constrain it to a list of particular apps (even if its 10 different ones etc) since you'll also need to figure out in those apps if the Share button(s) have a common/same name or ID, or if in the Task you're going to need to look for one of several values in those variables mentioned above.
Ratchet_Guy said:
The plugin AutoInput has a "UI Action" Event trigger, that you can configure to detect anything that is clicked on in the AI, then in the linked task you can check its "name" or "id" in the variable %aitext or %aiid,
However, to prevent the Event from triggering anytime you press anything all day long, you should add an "App" context to the Profile to constrain it to a list of particular apps (even if its 10 different ones etc) since you'll also need to figure out in those apps if the Share button(s) have a common/same name or ID, or if in the Task you're going to need to look for one of several values in those variables mentioned above.
Click to expand...
Click to collapse
Thank you for the reply.
I actuallly succeded doing the thing with Autoshare. [https://play.google.com/store/apps/details?id=com.joaomgcd.autoshare&hl=en]
1. Taker> Event> Plugin> Autoshare> Command=android.intent.action.SEND (rest all parameters default)
2. Taker> Task> Alert> Beep.
So, whenever I share any data, I automatically hear a beep!
Many thanks!
In the previous post, I have done the guide to run shell actions and I was asked few times to share similar write up about the intents. I seen another post that focuses on listing intents, so there was no point typing it all again, but instead I focused on how to find, construct and use intents in tasker, either through the Tasker Intent action or AutoShare.
I hope you will find this useful!
Android Intents in Tasker
Quit scratching your head trying to remember how to configure Tasker and use my initial Tasker configuration checklist!
Features include a bullet list of configuration and setting preference I typically use when I installing Tasker on a wiped or new device.
Article Link
Enjoy!
hello, you know if there is a way to do this with a task?
kurokirasama said:
hello, you know if there is a way to do this with a task?
Click to expand...
Click to collapse
Hey there! Unfortunately I do not... I wish there was though! If you are rooted there is always TiBu, I used to just do that until I stopped rooting my devices a few years ago. Thanks for reading my post!
when you create a task and go to Tasker action, there is something called Set Tasker Pref. You can use this to set different aspects of Tasker configuration, isn't this what you want?
alienyd said:
when you create a task and go to Tasker action, there is something called Set Tasker Pref. You can use this to set different aspects of Tasker configuration, isn't this what you want?
Click to expand...
Click to collapse
That method can do a few things however it will handle a very limited amount of items compared to my list. Hope that helps!
Yet in Tasker, you can create widgets and individual applications, and you can extend the functionality with plug-ins. There are plug-ins for voice control or remote control of the device, they are all available on the network, and they are inexpensive. With their help, you’ll even more improve your tablet or smartphone on Android.
Note that plug-ins are added to contexts and tasks – it all depends on what kind of chain of actions you want to create.
As you can see, the application’s capabilities are simply stunning, and it’s not for nothing that Tasker is called the best service for automation. Yes, at first, you need to understand the interface of the program but the elapsed time will completely pay for itself when you can fully configure the device for your own purposes. Therefore, the Tasker tool is definitely worth the installation and will significantly expand your knowledge of the system and your gadget.
I want to change an option from Developer Options (specifically the background process limit) but now I have to do it manually because this option changes back to the default after every reboot. Is there a way for this change to happen automatically after every reboot, either using Tasker or any other app? I run on Android 9.
Much to my surprised amazement, looking into this for you I discovered the classic IntangibleObject Secure Settings plugin has resurrected itself with an update back in January 2019.
What you want is easy peasy with this plugin. It's under Root Actions -> Background App Processes
Without root also possible -> open dev settings -> scroll down -> autoinput
ktmom said:
Much to my surprised amazement, looking into this for you I discovered the classic IntangibleObject Secure Settings plugin has resurrected itself with an update back in January 2019.
What you want is easy peasy with this plugin. It's under Root Actions -> Background App Processes
Click to expand...
Click to collapse
Would you mind elaborating a bit more on how to do what I want, using Tasker and the app you suggest? If you have time for a step-by-step guide, I would really appreciate it. I have both apps now but I cannot figure out how to make it (it is the first time I am trying to use tasker)
huggarn said:
Without root also possible -> open dev settings -> scroll down -> autoinput
Click to expand...
Click to collapse
If you mean in the device's dev settings (which, in my device/rom are called Developer Options), there is no autoinput option.
If you are that new to Tasker, then you would really benefit from taking time to read up on it. There are countless write-ups, videos, posts here in this forum geared towards beginners...
Even if you're not planning to need/want a profile, work through a beginner tutorial anyway which will get you familiar with how to add profiles, tasks and connect them.
To use the secure settings plugin action, you do have to be rooted. That's why it's under "root actions". You just add an plug-in action in a task for the secure settings plugin. Then configure that action to run the background process to whatever setting you want.
I would guess in your case the profile context would be an event -> system -> device boot.
BTW, the advice of using AutoInput you were given is a plugin for Tasker also. It would be a non-root method of emulating the taps you otherwise do manually. The specific advice was assuming some familiarity with Tasker and was actually the (abbreviated) steps to achieve what you want using AutoInput.
Import this profile, if you gave Tasker required permissions, should work without root. Just change int value in task.
https://taskernet.com/shares/?user=...DV78XH3AUBaZitf5Llp0FupQY=&id=Profile:Profile