Tasker command to change tab in tasker - Tasker Tips & Tricks

From my readings I think this cannot be done but I will ask anyway.
I have a simple task that I occasionally run manually from within tasker itself (not from the shortcut app on my phone that runs the app) so obviously for this I start tasker manually, go to the "Task" tab, click on my task to open it and press the play button. I would like that at the end of my task, tasker goes back automatically to my "variable" tab
That simple
Any idea?

Sure you can. Assuming you have root, just add two "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. The first tap location is the arrow to exit out of the task that you're running manually. The second is the location of the variables tab.
If you're not rooted, the AutoInput plugin can also do this.
If you're running this task from a shortcut as well as manually, you might want to set a variable when entering from the shortcut so the tap actions don't run.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Related

Trouble getting Car Mode to launch consistently? Here is a workaround.

Quick note for 4.4.2 and higher: I've upgraded to 4.4.2 and this method seems to have the reverse effect. The following tutorial applied to 4.3 and 4.4. If you have already followed this tutorial, upgraded to 4.4.2 or later, and Car Mode is not launching, disable or delete the "Kill App" action in the task.
Overview
If you are like me, you have a car dock and love to use the Car Mode on your HTC One. I'll let you know my setup below, but I believe this workaround will apply to any HTC One and car dock regardless of model. Keep in mind this is not a bug fix, rather a workaround.
My Setup
HTC One 64 GB (AT&T)
Rooted
ROM: Android Revolution HD 41.0 (at the time I wrote this)
Android 4.4 (tested on Android 4.3 as well)
HTC Car Dock
Symptoms
Docking your phone in your car dock after starting your car intermittently launches Car Mode.
Docking your phone prior to starting your car will launch Car Mode successfully every time.
When Car Mode does not successfully launch, you have to reboot your device (soft or hard reboot) to get it to work again.
What you need
Root
Tasker
Using Tasker to set up a workaround
Note: These are the steps to set up the profile and tasks. Alternatively, you can extract the attached ZIP file and import the XML file to Tasker.
In Tasker, go to the 'Tasks' tab
Click the '+' icon (New Task Name)
Enter a name for the task. I used "Car Mode Off'
In the Task Edit view, click the '+' (New App Action)
Select Action Category 'App'
Select App Action 'Kill App'
In App Selection, choose 'Car'. You will go back to the Action Edit view and the Car app/icon will be selected.
Check "Use Root" (I believe this is required since Car Mode is a system app)
Tap the back button twice to go back to the Tasks tab.
Go to the Profiles tab.
Click the '+' icon (Add Profile)
In the Context menu, select 'State'
Select State Category 'Hardware'
Select Hardware State "Docked'
In the State Edit window, select the Type 'Car'
Click the back button to display the Task Selection menu.
Select the task name from the menu that you created in Step 3.
If the new profile is not already expanded, tap the profile name (by default it will be named "Docked Car"
Long press the Task that currently shows as an Entry Task (green arrow pointing to the right) and choose 'Move to Exit'
Now that your profile is set up, press the Back or Home capacitive button on your device to save the profile.
After I did this, I had 100% success rate in launching Car Mode. I did have one issue after playing around with the profile a bit, so if you find that you have a static, non-clearable notification in your Notification Bar that says 'Speak' is running because Car Mode is active, know that it is a liar. It's not actually running. You can verify this by doing a three-finger tap on your screen and find that nothing happens. If Car Mode was indeed running, the Speak app would launch and ask for a voice command. To get rid of this notification (which is pointless anyway, IMO), do the following:
With your phone NOT in Car Mode, go to Settings > Apps > All > Speak
Uncheck 'Show Notifications'

Question About Making a Profile Shortcut

Hello.
I made a profile which basically whenever you set it on, you select some applications and when you try to open them they'll automatically close and make a short beep sound.
However, it's hard to go to Tasker and manually disable and enable the profile.
I was wondering if I could, let's say, hit the "back" button three times and the profile would either enable or disable, I would know this as a flash text would pop up on the screen saying either "Profile activated" or "Profile deactivated", any idea how to do this?
I don't think you can make tasker react to button presses that way, but in some UIs you can. Just make the tripple-press activate an action that toggles the profile. You could also make a shortcut to that task on your desktop. Another way would be to make a notification action button (preferences - monitor), to make the profile toggleable from the notifications.
If you're rooted and have the Xposed Framework installed, you can install Xposed Additions and remap whatever keys you want, some to even launch Tasker tasks.

Use Tasker to only get arlo camera notifications at certain times

Is this possible to do through Tasker? If so, how do you code it?
I want my cameras to record but I don't want to get notifications except for after sunset and just after sunrise everyday. So like 6pm to 8am.
Otherwise I want it to record but not notify me.
I posted this on reddit/r/tasker but no one has responded yet.
The time profile is easy. The trigger context is the window of time you want to block notifications.
The task would do the heavy lifting of actually blocking the unwanted notification. You probably could handle that using Notifications Off (Root), assuming of course that you're rooted. Else, AutoNotification can do that for you. Both are tasker integrated.
Get Started With AutoNotification
Use Tasker and AutoNotification to block notifications from certain apps (AutoApps forum)
ktmom said:
The time profile is easy. The trigger context is the window of time you want to block notifications.
The task would do the heavy lifting of actually blocking the unwanted notification. You probably could handle that using Notifications Off (Root), assuming of course that you're rooted. Else, AutoNotification can do that for you. Both are tasker integrated.
Get Started With AutoNotification
Use Tasker and AutoNotification to block notifications from certain apps (AutoApps forum)
Click to expand...
Click to collapse
Unfortunately neither of those are working. I have a pixel that is rooted and an s8+ that is not. So I tried both and I'm still getting notifications. Any ideas?
DudeThatsErin said:
Unfortunately neither of those are working. I have a pixel that is rooted and an s8+ that is not. So I tried both and I'm still getting notifications. Any ideas?
Click to expand...
Click to collapse
I didn't specifically state, but should have, that when using the AutoNotification method, an additional profile trigger needs to be an AutoNotification intercept event.
You could post a export (description) of the profile you've built.
ktmom said:
I didn't specifically state, but should have, that when using the AutoNotification method, an additional profile trigger needs to be an AutoNotification intercept event.
You could post a export (description) of the profile you've built.
Click to expand...
Click to collapse
Stuff (4)
A1: AutoNotification Block [ Configuration:Apps: com.netgear.android
Toggle: Enable Timeout (Seconds):60 ]
I pressed on export and that's what it gave me.
I also took screenshots. Here you go: https://imgur.com/gallery/bAhRY
Lmk if there is anything else you need.
Your profile is currently triggered by the arlo app. So anytime that app opens, your "stuff" task runs. Not what you were shooting for ?
On the left side of that screen, on top of the part that shows an icon and "arlo", do a long press. That will allow you to add a context.
Choose: state -> plugin -> AutoNotification -> Intercept.
Then leave "Event Behaviour" checked.
Tap on "Action type" and select created.
Tapp on "Apps" and check the box next to the Arlo app.
At the top of the screen tap the check mark to accept the configuration. Then on the next screen, the left arrow at the top left to lock in the context.
You will now have two contexts for that one profile.
Long press the original one for the arlo app and select delete.
Again, long press on the context that is remaining (AutoNotification Intercept) and tap add.
Now tap "time" and configure for the window you want this profile to be active.

Tasker 'no active profiles' and no tasks work

Hi guys
Tried importing a profile which will recognise three repeat keys and trigger an action, but, unfortunately this isn't working.
I created two test profiles, one based on camera button press, another based on shake. Simple result is beep and pop-up, but even that isn't working.
I have heard about key guard and not sure if this may be related tasker is enabled, but on swipe down 'no profiles are enabled' even though all three are checked orange and should be switched on. Phone has been restarted and its still not working...
Any ideas?
Sent from my D6603 using Tapatalk
A profile is active only when it's context(s) are all meet. That's different than being enabled.
Assuming you're using tasker 5, the toggles switched to the right and colored indicate enabled. The profile name being colored indicates active. When active, the tasker notification will show the name of the profile as active.
Try a simple test. Create a profile that has a context of application -> select one app like calculator or something -> use the arrow top left to exit the app list. Now create a new task when prompted and add an alert -> popup action. Just put testing in the text field and save. Now back out of tasker using the device back button multiple times. Open calculator and a pop-up should appear. The tasker notification should show the profile as active.
Now, it's hard to know what is happening with the profiles you're attempting without more information. You should export and post the DESCRIPTION of the profile whenever asking for help with a profile or task.
Long press on the profile name -> 3-dot menu -> export -> export "DESCRIPTION" to clipboard (not XML). Then paste here.
Beginner mode must be off and the profile must be named. If you didn't name it, there will be a default name created from the first context. You need to actually name the profile by long pressing and tapping the "A" at the top.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Block calendar notifications while driving

Hi,
might seem a silly question but it's very annoying while driving that I receive Samsung calendar notifications. While they appear full screen, Waze and music sounds are silenced.
I have to manually dismiss them before all sounds are 'restored'.
I just want to drive without interruptions of the calendar app, anyone know how this can be done? I'm also using Android Auto but don't see any setting that can accomplish this.
thank you
I'm using Tasker and AutoNotifcation for this. I block some notifications and enable the AOD while connected to my cars Bluetooth.
- install both apps
- in Tasker add a task and search for "AutoNotification Block".
- Tap the pen of Configuration and select the apps you want to block the notification for. You can also add the package name manually
- Under "Toggle" set it to "Block"
- go back and set the timeout to none (slide the slider to the most right)
- go back to the task
- go back to the task list
- add a new task, do the same as above but instead of "Block" set the Toggle to "Unblock".
Now you have the needed tasks and you can set the profiles for them.
- In Tasker go to the profile tap and add a new profile, name it whatever you want.
- Tap on "Status" and filter for "Bluetooth connected" (Note: Bluetooth must be enabled while creating the profiles!).
- Name is optional, tap on the magnifying glass for "Address" and select your cars Bluetooth address.
- go back and Tasker will popup a window where you need to assign a task. Assign the "block" task.
- now do the same again but Mark the "Reverse" check mark in the Bluetooth address menu and after this select the "unblock" task.
So, Tasker will tell AutoNotification to block the specific notifications while connected to the Bluetooth device and unblock it if disconnected.
I hope it works for you. I don't know the English menu entries for Tasker since my app is in German, sorry if there's something different.
thanks, great tip : I already bought Tasker a while ago, I'll set it up like that

Categories

Resources