How do I create a profile in Tasker that will start a program and then a process within that program? I would like to start a program, then another program and then a process within that program such as: run PerkTv then run Repititouch and then load a profile/process then run it.
Unless the app has an intent you can call to initiate the "process", you probably need to script input touches. Either by:
1) using "run script actions" with the command "input tap X Y". The X Y are the coordinates of the tap location. Turn "pointer location" on in settings -> developer options to find them (requires root)
or
2) using the AutoInput plugin (doesn't require root but does require access to adb)
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Related
I'm running version 4.4, not rooted, Moto x. Utilizing Tasker, what is the easiest way to have the touchless control prompt "ok google now" directly initiate/bring up the Utter voice command app to it's listening state? I can accomplish this no problem with the screen on and unlocked, but I want the ability to also launch it with the screen off/inactive. I am most familiar with utter but will be fine using any voice command app if necessary. I just want to be able to utilize UItter voice command capabilities without it always being in a permanent listening state, which really drains my phone's battery life. Thanks for any suggestions!
I am also interested in this. The following thread should give you some leads:
http://forum.xda-developers.com/moto-x/general/moto-x-offline-recognition-solved-t2571466
Utter
masterfisher166 said:
I'm running version 4.4, not rooted, Moto x. Utilizing Tasker, what is the easiest way to have the touchless control prompt "ok google now" directly initiate/bring up the Utter voice command app to it's listening state? I can accomplish this no problem with the screen on and unlocked, but I want the ability to also launch it with the screen off/inactive. I am most familiar with utter but will be fine using any voice command app if necessary. I just want to be able to utilize UItter voice command capabilities without it always being in a permanent listening state, which really drains my phone's battery life. Thanks for any suggestions!
Click to expand...
Click to collapse
I use the Ok Google now trigger intent xposed module and in tasker use it to launch the utter! Shortcut available from the playstore so that way I have always listening capability without the battery drain that permanent recognition from utter brings and it works perfectly everytime, the alternative is to use touchless controls together with auto voice recognise within tasker and get the Google now api xposed module so that you're still using Google now but tasker tasks can be implemented by voice in Google now, hope that helps although you need to be rooted which I have only just reread your comment to see that you are not
Without root, your options are a bit limited. Utter! Has a direct shortcut to launch its voice recognizer? If so, you can say "OK, Google now, open (utter! shortcut name) app" Kinda awkward, but it should work.
Sent from my XT1060 using XDA Premium 4 mobile app
<br />
I use the Ok Google now trigger intent xposed module and in tasker use it to launch the utter! Shortcut available from the playstore so that way I have always listening capability without the battery drain that permanent recognition from utter brings and it works perfectly everytime, the alternative is to use touchless controls together with auto voice recognise within tasker and get the Google now api xposed module so that you're still using Google now but tasker tasks can be implemented by voice in Google now, hope that helps although you need to be rooted which I have only just reread your comment to see that you are not<br/>
Can you elaborate on this? I'm not a big Tasker user.
Sent from my XT1053 using Tapatalk
Touchless utter
overthatscreen said:
<br />
I use the Ok Google now trigger intent xposed module and in tasker use it to launch the utter! Shortcut available from the playstore so that way I have always listening capability without the battery drain that permanent recognition from utter brings and it works perfectly everytime, the alternative is to use touchless controls together with auto voice recognise within tasker and get the Google now api xposed module so that you're still using Google now but tasker tasks can be implemented by voice in Google now, hope that helps although you need to be rooted which I have only just reread your comment to see that you are not<br/>
Can you elaborate on this? I'm not a big Tasker user.
Sent from my XT1053 using Tapatalk
Click to expand...
Click to collapse
Download and install utter quick launch from the playstore and the okgooglenowtriggerintent module from xposed, once you have activated it and rebooted in xposed framework open tasker and create a new profile, hit event then in the popup start to type intent and send intent will appear, hit that and in the action section type the following:
com.hawkjm.okgooglenowtriggerintent.AUDIO_TRIGGER
Press back and new task popup will appear, choose application and select utter quick launch, make sure tasker is running and the new profile is active in tasker and keep pressing back until tasker exits, now everytime you say ok Google now utter will listen instead of Google now, you might want to customise the response from your command in utter, I changed mine simply to yes each time I activate utter and bear in mind that it has nothing to do with the wake up command settings in utter, I hope that all makes sense
If it's the tasker tasks in Google now that you are interested in then download autovoice from the playstore and the Google search api from the xposed framework application downloads section and activate it and reboot,
Open autovoice and scroll to the bottom and make sure that Google search api is enabled then open the Google search api app that you downloaded (should now be an icon) swipe across to the right and make sure autovoice is there, if not then reboot, if so open tasker, create a profile, select state, plugin, autovoice recognised then next to configuration hit the edit button, scroll to command filter and type the Phrase that you want to be recognised for example Toggle bluetooth, back out of it and hit the tick, then select the task that you want to perform (the possibilities are endless) and back out of tasker until it closes then try out your command, create new profiles for each autovoice command that you want to execute,
Google search will try and search for whatever you say even though it will execute your task, if you're fine with that then leave it as it is, if you want Google search to close after executing certain commands then under each task that you create press plus, select if and make the top line look like this:
%avsource ~ googlenow
Then hit back, hot plus and type kill application and select that option, search for google search and tick use root,
Hit back again and hit plus and type end if and select it and then hit back until tasker exits. Now whenever you say that particular command Google now will execute it and then return to where you were previously, if you don't want to do that for each task simply create a profile for recognising the Phrase homepage and have it run the task homepage
mpd81 said:
Download and install utter quick launch from the playstore and the okgooglenowtriggerintent module from xposed, once you have activated it and rebooted in xposed framework open tasker and create a new profile, hit event then in the popup start to type intent and send intent will appear, hit that and in the action section type the following:
com.hawkjm.okgooglenowtriggerintent.AUDIO_TRIGGER
Press back and new task popup will appear, choose application and select utter quick launch, make sure tasker is running and the new profile is active in tasker and keep pressing back until tasker exits, now everytime you say ok Google now utter will listen instead of Google now, you might want to customise the response from your command in utter, I changed mine simply to yes each time I activate utter and bear in mind that it has nothing to do with the wake up command settings in utter, I hope that all makes sense
If it's the tasker tasks in Google now that you are interested in then download autovoice from the playstore and the Google search api from the xposed framework application downloads section and activate it and reboot,
Open autovoice and scroll to the bottom and make sure that Google search api is enabled then open the Google search api app that you downloaded (should now be an icon) swipe across to the right and make sure autovoice is there, if not then reboot, if so open tasker, create a profile, select state, plugin, autovoice recognised then next to configuration hit the edit button, scroll to command filter and type the Phrase that you want to be recognised for example Toggle bluetooth, back out of it and hit the tick, then select the task that you want to perform (the possibilities are endless) and back out of tasker until it closes then try out your command, create new profiles for each autovoice command that you want to execute,
Google search will try and search for whatever you say even though it will execute your task, if you're fine with that then leave it as it is, if you want Google search to close after executing certain commands then under each task that you create press plus, select if and make the top line look like this:
%avsource ~ googlenow
Then hit back, hot plus and type kill application and select that option, search for google search and tick use root,
Hit back again and hit plus and type end if and select it and then hit back until tasker exits. Now whenever you say that particular command Google now will execute it and then return to where you were previously, if you don't want to do that for each task simply create a profile for recognising the Phrase homepage and have it run the task homepage
Click to expand...
Click to collapse
Great topic! Learning more about integrating Google Now and AutoVoice, but i have some doubts yet
I have a MotoX and do not want to leave the continuous mode autovoice on because MotoX has dedicated processor for voice recognition, intend
use "OK Google Now" to enable the continuous mode autovoice.
Could be accomplished?
"OK NOW GOOGLE", "MOTO X" "TURN ON TV"
^MotoX feature
^Enable AutoVoice
^Action
dont like Utter!...
Easily acomplished
klucilla said:
Great topic! Learning more about integrating Google Now and AutoVoice, but i have some doubts yet
I have a MotoX and do not want to leave the continuous mode autovoice on because MotoX has dedicated processor for voice recognition, intend
use "OK Google Now" to enable the continuous mode autovoice.
Could be accomplished?
"OK NOW GOOGLE", "MOTO X" "TURN ON TV"
^MotoX feature
^Enable AutoVoice
^Action
dont like Utter!...
Click to expand...
Click to collapse
You can accomplish it a couple of ways, if you use the okgooglenowintent xposed module as described above and instead of choosing utter quick launch you choose autovoice recognise as your task and give your commands that way (using this xposed module doesn't use autovoice permanent recognition, it uses the same as the touchless control does its just intercepting and switching touchless control for whatever app you replace it with so it doesn't drain any battery)
Or you can get the Google search api xposed module and set it up like I have above so that all of your tasker tasks are accomplished using Google now, so for example at screen off "OK Google Now turn on the tv" and providing you have the tasker task setup using the autovoice recognised profile or will perform the task for you
Just to clarify, using autovoice recognised under profile in tasker does not drain the battery as it's not the same thing as continuous listening mode in autovoice and you are using the moto x dedicated core for listening for your ok Google now command
HI, how can I tab a button on the screen, withou root ?
Using Automate, for example, there is a option named "Interactions" that I configure the control type and its text content.
In Tasker, how can I do that?
The only ways using only tasker that I know to do that requires root. However, the AutoInput plugin can help. You authorize AutoInput with sufficient permissions through ADB so it doesn't require root.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Hi there,
I hope, someone can help me
I'm using Tasker for a while on several devices. For example I use profiles which turn location mode off or to high accuracy (using external app Autotools - Secure Settings) and mobile data on or off (using external app toggle data 5.0). This worked well until I updated our Oneplus 5T to Android 8.0.
The external app commands seem to work sometimes, but the rest of the profile tasks aren't executed and next time the commands don't work anymore.....
FYI: Autotools is granted permission to write secure settings and toggle data 5.0 has root access.
Toggle data 5.0 also got a widget to turn mobile data on or off and this works perfectly but tasker seems to have problems to use this external app and the app seems to freeze for a while after executing the task .
I attached an image from a run, where tasker managed to change location mode to high accuracy but stopped after this task with an error.
All apps are up to date (Tasker v5.1, Autotools v2.1.bf, Toggle Data 1.5.2.0) and the Oneplus 5T is on the latest Oxygen OS Version 5.0.4 (but on 5.0.3. the tasks didn't work either).
Thanks in advance
Better to include the log from running the task, probably a logcat as well since there is communication with plug-ins and it's always a good idea to share your profile when it's not working as expected. Make sure it's named - not a default name assigned by tasker. Then long press on the name to highlight the profile. Go to the 3-dot menu and select export -> Description to Clipboard.
Then you'll be able to paste it. Be aware, it easier to use pastebin then link to a post here. If you paste in a post here, the forum software will convert all semicolons with characters after, typically "on" and "off" to emoticons making it very hard to read.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Since you have root, you can try to use the Run Shell action instead.
lauralbaby said:
Since you have root, you can try to use the Run Shell action instead.
Click to expand...
Click to collapse
Thank you very much for your answer
After a quick research I found the two shell commands "svc data enable" and "svc data disable" to enable and disable mobile data which work fine with root permission:good:
Do you know, if there are commands for changing location mode to off and high accuracy, too? I only found commands like " adb shell settings put secure location_providers_allowed ' ' " but these didn't work.
Thanks in advance.
Try changing location_mode from 3 to 0.
lauralbaby said:
Try changing location_mode from 3 to 0.
Click to expand...
Click to collapse
Could you please tell me the exact command, for example for location mode 0? The command i found doesn't work because the terminal and tasker can't use ADB....
.
Just take off the "adb shell" part:
settings get secure location_providers_allowed
network,gps
Run the "get" command to be sure you have the right values before changing them.
(BTW if AutoTools doesn't work Secure Settings or Secure Task might be worth trying.)
lauralbaby said:
Just take off the "adb shell" part:
settings get secure location_providers_allowed
network,gps
Run the "get" command to be sure you have the right values before changing them.
(BTW if AutoTools doesn't work Secure Settings or Secure Task might be worth trying.)
Click to expand...
Click to collapse
With your help and another research and tests I finally found the solution:laugh:
Thank you very much for your help
If you or anyone else wants to know the correct commands:
Turn location mode to high accuracy:
Code:
settings put secure location_providers_allowed +network,gps
Turn location mode off:
Code:
settings put secure location_providers_allowed -network,gps
Turn mobile data on:
Code:
svc data enable
Turn mobile data off:
Code:
svc data disable
Hi all,
I have created a task that executes..
1. Launch App (Viper Smart Start, the Car's remote start app).
2. Wait (2 seconds)
3. Actions (Plugin : TouchTask > Tap Method > Point (x, y) Selection: 750 800
4. Wait (2 seconds)
5. Go Home
When i execute this task (named Start Car) manually everything works as expected.
But now I need to tie this to AutoVoice.
I'd like to invoke this task via voice command.
Can someone please guide me through steps on how I can go about this?
Ideally i'd like to use the keyword, "Viper Start my car"
There's a good tutorial here
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
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