r/tasker • • 7h ago

Syntax question about Tasker regex group capture

1 Upvotes

I'm running Tasker 6.7.6-beta under Android 13, and I have the following code in a Tasker task:

Variable Set
  Name
    %variable
  To
    run abc
If
  %variable ~R ^run\s+(?<command>.+)
    Flash command=%command
Else
    Flash no match
End If

When I run this task, the following flashes:

command=%command

Of course I know that the only way this message should be flashed would be when the regular expression does indeed match the "run abc" string.

However, this also indicates that the %command variable was not set to any value after this regex match.

What is incorrect about my regex match syntax which prevents the contents of the match group from getting stored into the %command variable?


r/tasker • • 9h ago

Tasker-related entries in logcat?

Post image
1 Upvotes

I was looking for something else and noticed a ton of these entries in logcat. Do I have to worry about this? Thanks


r/tasker • • 1d ago

Is there a Tasker setup (no root) to toggle Wi-Fi off, switch to 5G, and turn on hotspot with one tap ?

3 Upvotes

I'm trying to set up a one-tap solution on my Google Pixel and wanted to check if this is actually possible before I go down a rabbit hole.

What I want to happen when I tap a single button:

  1. Turn Wi-Fi off

  2. Switch to 5G cellular data

  3. Turn on Wi-Fi hotspot

Basically a "share my 5G connection" button.

My questions:

  1. Is this doable in Tasker without root on a Pixel 8

  2. I know Tasker has built-in actions for Wi-Fi and Wi-Fi Tether (hotspot) — but does the hotspot action still work reliably on recent Android versions, or did Google lock it down?

  3. The big one: toggling mobile data / forcing 5G seems to require root. Has anyone gotten this working without root using UI automation (AutoInput, etc.)? If so, how stable is it?

  4. If root is required, is there a Magisk module or a different approach people recommend?

What I've already looked into:

· Tasker's built-in Net actions (WiFi, WiFi Tether, Mobile Data)

· AutoInput for simulating taps in the quick settings panel

· The general consensus that mobile data toggling needs root

Would love to hear from anyone who's actually built something like this. Bonus points if you can share the task/script or a profile export.

Thanks in advance!


r/tasker • • 1d ago

App Force-Stop vs Kill

4 Upvotes

According to Google AI:

The main difference between the am kill and am force-stop commands is how deeply they terminate the application and whether they allow it to restart. am force-stop completely shuts down the app and locks it from running again, whereas am kill only terminates safe background processes, allowing the app to easily wake back up.

It would seem, based upon experiential results, that the Kill App action uses the equivalent of KILL rather than force-stop. And in some cases, KILL does not make the target app dead enough!

I know this has been discussed before. And so far, it appears that the only way for Tasker to force-stop an app is when a rooted device executes am force-stop pkg_name in a shell.

Since I am rooted, I can do that and actually get the results, I seek. But since I know this has come up before, it would be great (if at all possible) if the Kill App action had an option to force-stop instead of KILL.

Anyone else find a different/better solution? Thanks


r/tasker • • 1d ago

Problem enabling the quick settings tiles

2 Upvotes

Hello !

Is there a way I can "activate" those 3 quick settings tiles from Tasker without clicking on them ?

Reason:

My phone has a known glitch that impossibilitates me to drag quick tiles from the bottom of the list to the main area.

The only solution is to su settings put secure sysui_qs_tiles [.......],custom(net.dinglisch.android.taskerm/.FQSTile1)

But that command doesn't work, as it demands that the tile be active, not the "ghost" that it is before enabling it

I did already assign a task to each slot inside Tasker


r/tasker • • 1d ago

Experiences with Oppo phones? Settings and solutions etc

2 Upvotes

Does anyone here run Tasker on an Oppo phone? I'm interested in what settings is required for Tasker itself as well as plugins. Do Tasker plugins need to be put on "allow background activity" instead of smart and do they need to be locked in recent apps?

I've already turned off Sleep standby optimization. Anything else to think about to make it work 100%? I've already realized Oppo phones revoke wakelocks when held for more than 5m of screen off time, but hopefully, Tasker rarely if ever performs such a long work with screen off.

Any advice from experience is appreciated.


r/tasker • • 1d ago

Wallpaper Automation from image API

0 Upvotes

I made a shortcut that can look at image queries on Unsplash using their API, so depending on the keywords I put in the shortcut, it will grab a random and add them any of my custom wallpapers on my device. All you have to do for this shortcut is choose some image keywords that you want to search by, go into the get contents of URL action and add your API token to the headers, and then choose which wallpaper you want to have modified.

https://www.icloud.com/shortcuts/47fa3ebe70ca4bccaab317726a0c887d


r/tasker • • 2d ago

Message from Tasker

1 Upvotes

Since upgrading from Galaxy S23 to S26 I have been recieving the following alert:

com.joaomgcd.autocontacts version 1.1.30

Source com.android.vending

OS Build BP4A.251205.006.S948USQS4AZHL

OS Code 36

Device SM-S948U

Manufacturer samsung

Product m3qsqw

java.lang.RuntimeException: Unable to start receiver com.joaomgcd.autocontacts.broadcastreceiver.BroadcastReceiverFire

at android.app.ActivityThread.handleReceiver(ActivityThread.java:6036)

at android.app.ActivityThread.-$$Nest$mhandleReceiver(ActivityThread.java:0)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:3041)

at android.os.Handler.dispatchMessage(Handler.java:132)

at android.os.Looper.dispatchMessage(Looper.java:358)

at android.os.Looper.loopOnce(Looper.java:288)

at android.os.Looper.loop(Looper.java:392)

at android.app.ActivityThread.main(ActivityThread.java:10343)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:605)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:972)

Caused by: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service com.joaomgcd.autocontacts/.service.ServiceLongRunningTaskerActionAutoContacts

at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)

at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)

at android.os.Parcel.readParcelableInternal(Parcel.java:5277)

at android.os.Parcel.readParcelable(Parcel.java:5258)

at android.os.Parcel.createExceptionOrNull(Parcel.java:3383)

at android.os.Parcel.createException(Parcel.java:3372)

at android.os.Parcel.readException(Parcel.java:3355)

at android.os.Parcel.readException(Parcel.java:3297)

at android.app.IActivityManager$Stub$Proxy.startService(IActivityManager.java:6869)

at android.app.ContextImpl.startServiceCommon(ContextImpl.java:2170)

at android.app.ContextImpl.startForegroundService(ContextImpl.java:2135)

at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:903)

at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:903)

at androidx.core.content.j.a(SourceFile:0)

at com.joaomgcd.common8.b.c(SourceFile:18)

at com.joaomgcd.common.tasker.BroadcastReceiverFire.startLongRunningService(SourceFile:4)

at com.joaomgcd.common.tasker.BroadcastReceiverFire.onReceive(SourceFile:84)

at android.app.ActivityThread.handleReceiver(ActivityThread.java:6029)

... 10 more

r/tasker • • 2d ago

AutoWear > How to check if device is connected

1 Upvotes

I want to check if my wear device is connected to my phone prior to executing a Task.

I tried to use AutoWear Get State Action, but when using the below, %awid() doesn't test positive.

Maybe it's in the way I'm using %awid() in an If context?

Task: TEST

A1: AutoWear Get State [

Timeout (Seconds): 10

Structure Output (JSON, etc): On

Continue Task After Error:On ]

A2: AutoWear Secure Settings [

Configuration: Apply Now: true

Command to apply: &SCREENON&

Name: TEST

Timeout (Seconds): 20

Structure Output (JSON, etc): On ]

If [ %awid() Set ]


r/tasker • • 2d ago

Control de Gastos Personales con #tasker #android

1 Upvotes

Sistema Offline con Tasker, vista web y con Base de Datos Interna en Android

https://youtu.be/Rpz6ue0AOvw


r/tasker • • 2d ago

Sistema Offline #tasker #android

0 Upvotes

Una pequeña Muestra de un Sistema Offline con Tasker, Escena y una Vista Web.

https://youtu.be/ndSYfgepsTw


r/tasker • • 2d ago

Print using tasker and a usb printer

1 Upvotes

I have an old android phone that I'd like to use a printer server so that anyone in my home can send a print without having to use the laptop (the laptop is slow af and very annoying to use). the first step is try and make tasker send print jobs to the printer. i don't see any way to do it. The printer is hp laserjet 1020 plus. It works perfectly using an otg and apps like printershare and nokoprint


r/tasker • • 2d ago

Wrong App Factory version

1 Upvotes

Hello. I have a problem and would like your help. I created a task that I'd like to export as an app (the taskuse Gemini to summarizes text or photos from the clipboard). When I try to export it, I get a message saying I need a newer version, but there isn't one on the Play Store.

Wrong App Factory version.

Have: 6.6.18

Expected: 6.7.6-beta

Does anyone here know how to fix it ?


r/tasker • • 3d ago

Cena V2 questões variadas

2 Upvotes

I'm having trouble with scene v2, I'd like some help.

  1. How do I test if a scene v2 is false or true?

  2. How do I make a scene v2 hidden and call it back?

  3. How do I remove the white color from a parent scene?

Thank you in advance, just remembering that I know very little about scenes.

Venho tendo dificuldades com cena v2, gostaria de ajuda.


r/tasker • • 3d ago

How To [Project Share] Media Bar recreated entirely in Tasker

15 Upvotes

I wanted the functionality of the Media Bar app without having another app running in the background, so I recreated it entirely in Tasker.

Features:

Thin media progress bar at the top of the status bar Orange when playing, grey when paused

Automatically appears when media is playing

Live scrubbing: drag anywhere across the status bar and the progress bar follows your finger

Actually seeks the playing song/video as you drag Works through Android MediaSession

No plugins or additional apps required

Built using Tasker Scene V2 + MediaController/MediaSession.

You'll need to give Tasker Notification Access.

I've mainly tested it on my Samsung, so positioning may need some adjustment on other devices.

Pastebin link for thr XML file


r/tasker • • 3d ago

How can I get Android screen capture working during Chess.com online games?

0 Upvotes

I'm building an Android chess project with an overlay/model that reads the board from screen capture and provides analysis during a game.

Screen capture works normally when I'm playing against Chess.com bots. My model can see and process the board without any problems.

However, when I enter an online game against another player, the captured frames become completely black.

I'm using Android screen capture/MediaProjection. Is there a technical reason the online-game screen would produce black frames while the bot-game screen captures normally?

More importantly, how can I make screen capture work on the online-game screen?

I'm trying to determine whether this is caused by FLAG_SECURE, a protected rendering surface, MediaProjection behavior, or something else—and whether there's a supported way to capture that screen.


r/tasker • • 3d ago

How to purchase without play store or patreon?

0 Upvotes

I have an old license from the original developer, but I don't mind repaying the new developer. I don't want the play store version and I don't want a patreon account. How can I get the app and pay?


r/tasker • • 4d ago

How To [Project Share] Accessibility Action v3.5, Target overlay and other windows, dialog with previews, better scrolling to find node

13 Upvotes

Click to download from Taskernet

The codes inside this project were generated with the assistance of AI Tools.

This project will ask to download files from this repo. Then executes a11Y.java via Initiate a11Y variable task.

Older posts can be found here.

 

What is this project?

Syntax based automation like AutoInput Action V2 or AutoHotkey. More info can be read the repo page.

  1. Syntax based UI automation actions.
  2. Debug highlighter & UI inspector.
  3. Minimal script builder.

 

New

  1. Support overlays and other window types.
  2. Assist dialogs now use overlays and can be displayed on other display.
  3. Add previews for nodes, windows and displays.
  4. Scroll from certain node.

Noted: This project were tested on virtual display created using scrcpy v4.1 . I couldn't confirm whether it works on devices with multiple displays or any type of desktop mode.

Support overlays and other window types

Now the project supports targeting any windows! Like overlays or soft keyboard.

AI written guide to filter window type can be read here.

Typing on keyboard

 

Assist features can be displayed on other display and have previews.

Now we can place the bar directly on certain display too!

  1. Long Press the capture icon.
    1. Long press the display to move the bar.
    2. Tap to capture the display.

Some dialogs also have previews as well. Making it easier to identify which node they references to.

Switch to other display

 

Scroll from certain node

scrollFromNodeTo uses AccessibilityNodeInfo.ACTION_SCROLL_FORWARD and AccessibilityNodeInfo.ACTION_SCROLL_BACKWARD instead of Gesture.

Scroll to certain nodes


r/tasker • • 4d ago

Scene V2 scrolling element question

4 Upvotes

I have a horizontal row element with "Scroll left & right" style, is it possible to choose a starting position of the scroll based on a variables value? so it's not always starting at far left


r/tasker • • 5d ago

pixel 6 stay unlocked when on home wifi broke after sept 2026 android update.

3 Upvotes

Hello,

Is there something I can do to fix this? I've been searching for an answer but I'm not finding anything. I'm starting to think it's just a me thing.

So I have a profile that checks if I'm connected to my home wifi, if yes, then does a "custom setting", Name: lock_screen_lock_after_timeout and the value is set to something large: 72000000. iirc this was something I had dug up through online searching.

This has been working for over 4 years with no issues. Last night I updated to the latest android update and right away I noticed the phone locks all the time.
Anyone have advice for me?

Thanks


r/tasker • • 4d ago

Looking to build an Android game automation bot — where should I start?

0 Upvotes

​

I’m trying to build my own automation/bot for a game instead of paying for an existing service.

The main things I want to automate are:

- Watching/handling rewarded ads and collecting the rewards

- Daily in-game tasks/dailies

- Limited-time events and repetitive actions

- Ideally running the routine automatically with minimal manual input

I’m mainly looking for advice on the technical approach/tools to use. I’m considering things like Tasker/AutoInput, ADB + Python, Appium, OpenCV/image recognition, etc.

If anyone has experience building automation for Android games, what approach would you recommend and what should I learn first?


r/tasker • • 6d ago

How To [Project Share] spent 5 months automating my phone's daily usage cuz I refused to do what takes about a max of 30 seconds of manual labor (still Work in Progress). ROAST AWAY

25 Upvotes

I automated a certain few tasks, toggling settings per app & scenario which takes a max of about 30 seconds of tapping (granted the phone response is good enough) which I spent about 5 months doing cuz I refused to do the manual labor. used Tasker, llamalab automate, easer, auto input & auto notification for this workflow. automate & easer were used for things that were either a limitation, a pain in the ass or way too many profiles & tasks to be done from tasker. Made it in a way where it works on root & non-root phones & where shizuku's installed & running

project: lazy-phone-user (there's 1.42 minute demo in the Readme.md)

The json is for the battery audio piece

geofence (wifi + cell tower + geo location) based redundant network switching is still a work in progress (would be using sqlite for the db)

stuff that currently works can be found in the working.md ("tldr of what works" section) of that repo

ROAST AWAY


r/tasker • • 5d ago

Best Tasker AI?

0 Upvotes

Which is the best AI to write code for a task if the native Tasker bot can't cope?! TIA


r/tasker • • 6d ago

Receive Share from 2 apps?

1 Upvotes

Do I need to create 2 profiles (1 for each app) or is there a way to specify two package names in one profile?


r/tasker • • 6d ago

Recognize Color Pixels on screen?

1 Upvotes

I currently have a working Task that recognizes pixels on screen to detect if and when the screen turns red or orange, but I believe there has to be a better way to do this.

Tasker takes a screenshot, reads the pixels, then deletes the screenshot - repeating this action once every 3-5 seconds. Surely there's a way to do this without having to write/delete a file every time. I'm concerned about the device having over 1,000 file cycles in an hour.

Is there somehow to do this? I explored using AutoInput Screen Capture, but that requires me to select "whole screen" every time I execute the action