r/tasker

โ–ฒ 6 r/tasker

Project Sharing: Generate Tasker Task from XML using Java Code

For another project of mine, I thought it would be really useful if I could automatically create a Task when needed. After some trial and error, I found a solution using the Java Code action.

In short, what does this Java Code do?

It takes the XML code of a complete Task or Project, compresses it directly in memory using GZIP (no temporary file is created), converts it to Base64, and creates a Tasker Data URI like:

taskertask://...
or
taskerproject://...

The URI is then opened, allowing Tasker to ask the user if they want to import the Task.

With the help of an AI assistant, I created a robust version that is also relatively easy to customize for your own projects.

To Import Taskernet Project: Click Here
Java Code: paste.to/?430b135723f91cae#4SXMosAyPGR9Yxty95WgM7g8JZxHzNGNYsqvDtzA2cEN

How to use it

First, create a Task containing the actions you want.

For this example, let's say we have a Task called "Task Example" with a Flash action containing the text "Text".

The exported XML looks like this:

<TaskerData sr="" dvi="1" tv="6.7.6-beta">
    <Task sr="task395">
        <cdate>1787164951612</cdate>
        <edate>1787164962284</edate>
        <id>395</id>
        <nme>Task Example</nme>
        <Action sr="act0" ve="7">
            <code>548</code>
            <Str sr="arg0" ve="3">Text</Str>
            <Int sr="arg1" val="0"/>
            <Str sr="arg10" ve="3"/>
            <Int sr="arg11" val="1"/>
            <Int sr="arg12" val="0"/>
            <Str sr="arg13" ve="3"/>
            <Int sr="arg14" val="0"/>
            <Str sr="arg15" ve="3"/>
            <Int sr="arg2" val="0"/>
            <Str sr="arg3" ve="3"/>
            <Str sr="arg4" ve="3"/>
            <Str sr="arg5" ve="3"/>
            <Str sr="arg6" ve="3"/>
            <Str sr="arg7" ve="3"/>
            <Str sr="arg8" ve="3"/>
            <Int sr="arg9" val="1"/>
        </Action>
    </Task>
</TaskerData>

Now we need to tell the Java Code where we want to insert our own values.

To do that, we use placeholders inside curly brackets {}.

Here is the same XML after replacing the values we want to customize:

<TaskerData sr="" dvi="1" tv="{TASKER_VERSION}">
    <Task sr="task279">
        <cdate>{CURRENT_TIME}</cdate>
        <edate>{CURRENT_TIME}</edate>
        <id>279</id>
        <nme>{TASK_NAME}</nme>
        <pri>100</pri>
        <Action sr="act0" ve="7">
            <code>548</code>
            <Str sr="arg0" ve="3">{FLASH_TEXT}</Str>
            <Int sr="arg1" val="0"/>
            <Str sr="arg10" ve="3"/>
            <Int sr="arg11" val="1"/>
            <Str sr="arg13" ve="3"/>
            <Int sr="arg14" val="0"/>
            <Str sr="arg15" ve="3"/>
            <Int sr="arg2" val="0"/>
            <Str sr="arg3" ve="3"/>
            <Str sr="arg4" ve="3"/>
            <Str sr="arg5" ve="3"/>
            <Str sr="arg6" ve="3"/>
            <Str sr="arg7" ve="3"/>
            <Str sr="arg8" ve="3"/>
            <Int sr="arg9" val="1"/>
        </Action>
    </Task>
</TaskerData>

Now copy this whole xml code and put it inside a set variable action and give this variable the name %xmltask. If you want to change to a different name you need to search for this line:

    String xml =
        tasker.getVariable("xmltask");

You can change xmltask to whatever name you want.

Tasker Version and Date

When you create or edit a Task, Tasker stores information such as the Tasker version and the creation/edit timestamps in the XML.

This isn't strictly required for our purpose, but the Java Code can automatically insert the current values.

Change:

dvi="1" tv="6.7.6-beta">

to:

dvi="1" tv="{TASKER_VERSION}">

And change:

<cdate>1787164951612</cdate>
<edate>1787164962284</edate>

to:

<cdate>{CURRENT_TIME}</cdate>
<edate>{CURRENT_TIME}</edate>

The Java Code will replace these placeholders with the installed Tasker version and the current timestamp.

Creating variables for the Task

Now we can use the same concept for the Task name and the text inside our Flash action.

Change:

<nme>Task Example</nme>

to:

<nme>{TASK_NAME}</nme>

And change:

<Str sr="arg0" ve="3">Text</Str>

to:

<Str sr="arg0" ve="3">{FLASH_TEXT}</Str>

Now we need to create the corresponding Tasker variables.

For example:

A1: Variable Set [
     Name: %task_name
     To: Task Creation Test
     Structure Output (JSON, etc): On ]
A2: Variable Set [
     Name: %flash_text
     To: Hello World
     Structure Output (JSON, etc): On ]

So we now have:

%task_name = Task Creation Test
%flash_text = Hello World

The first variable will become the Task name, and the second will become the text inside the Flash action.

Connecting the Tasker Variables to the XML

Now open the Java Code action and scroll down until you find:

    // --------------------------------------------------
    // 5. Replace Tasker variables
    //
    // Format:
    //
    // replaceVariable(
    //     xml,
    //     "XML_PLACEHOLDER",
    //     placeholderRequired,
    //     "tasker_variable",
    //     variableRequired
    // );
    //
    // --------------------------------------------------

This is where we tell the Java Code which Tasker variables should be inserted into the XML.

The template is:

    xml =
        replaceVariable(
            xml,
            "XML_PLACEHOLDER",
            false,
            "tasker_variable",
            false
        );

For example, to connect our Task name:

    xml =
        replaceVariable(
            xml,
            "TASK_NAME",
            true,
            "task_name",
            true
        );

The values mean:

"TASK_NAME" is the XML placeholder.

true = the XML "TASK_NAME" placeholder must exist; otherwise, an error is returned.

"task_name" is the Tasker variable name.

true = the Tasker variable must contain a value; otherwise, an error is returned

Notice that we don't include % when specifying the Tasker variable name.

For our Flash text, we can add:

    xml =
        replaceVariable(
            xml,
            "FLASH_TEXT",
            true,
            "flash_text",
            true
        );

You can add as many variables as you need using the same format.

Required vs. optional placeholders and Tasker variables

  • The first Boolean controls whether the XML placeholder is required:
    • true means the XML placeholder must exist. If it is missing, the Java Code stops and displays an error.
    • false means the XML placeholder is optional. If it doesn't exist, it is simply ignored.
  • The second Boolean controls whether the Tasker variable is required:
    • true means the Tasker variable must contain a value. If it is missing or empty, the Java Code stops and displays an error.
    • false means the Tasker variable is optional. If it is missing or empty, it is replaced with an empty value.

So the format is:

replaceVariable(
    xml,
    "XML_PLACEHOLDER",
    true,           // XML placeholder required
    "tasker_variable",
    false            // Tasker variable doesn't required
);

This Java code can also auto create a Project but i am pretty sure users wouldn't need to use it. If you really want to you just need to search inside your xml project code the name of your project like here:

<name>New Project</name>

And change it to something like this:

<name>{PROJECT_NAME}</name>

Then you need to just edit your java code to match your placeholder and Tasker variable

    xml =
        replaceVariable(
            xml,
            "PROJECT_NAME",
            true,
            "project_name",
            true
        );

The result

Now, when we run the Java Code together with our Variable Set actions, it will:

  1. Take our XML template.
  2. Replace the placeholders with our Tasker variables.
  3. Insert the current Tasker version and timestamp.
  4. Validate the resulting XML.
  5. Compress the XML using GZIP directly in memory.
  6. Convert it to Base64.
  7. Create the taskertask:// Data URI.
  8. Open it.
  9. Tasker asks whether we want to import the new Task.

Here's a demo of how it looks:

Demo video

Using this in a real project

I took this idea and incorporated it into another project of mine that allows users to run commands in Termux without using a Tasker plugin.

I created a scene that helps the user build the required configuration, and with just a few clicks it can generate a new Task containing all the actions and code they need.

Here's a demo of that:

Demo video inside a project

Hopefully this will be helpful to someone with his projects

reddit.com
u/Nirmitlamed โ€” 1 day ago
โ–ฒ 17 r/tasker

Project Share] โ€“ An advanced, responsive Clipboard & History Manager for Tasker

Czeล›ฤ‡ wszystkim,

Chciaล‚em podzieliฤ‡ siฤ™ ClipH, menedลผerem schowka i historii, nad ktรณrym pracujฤ™ i go dopracowujฤ™ w Taskerze.

https://taskernet.com/shares/?user=AS35m8nsG4J3Nu2TfMykxjbuz8iZ4M%2FIOt5HVurs%2FLn%2BJ8WU4a4iPMfMDcRpZd2yLXUngAjk&id=Project%3AClipH%3AClipH

Zaczฤ…ล‚em nad tym pracowaฤ‡, poniewaลผ standardowe narzฤ™dzia schowka, takie jak schowek Gboarda, byล‚y zbyt ograniczone dla mojego przypadku uลผycia, zwล‚aszcza przy kopiowaniu bardzo duลผych blokรณw tekstu lub kodu. Czฤ™sto pracujฤ™ z ogromnymi fragmentami, a ich skracanie lub znikanie z historii szybko zaczynaล‚o byฤ‡ irytujฤ…ce.

ClipH wykorzystuje lokalnฤ… bazฤ™ danych SQLite do przechowywania historii i w duลผej mierze polega na kodzie Java / BeanShell do interfejsu uลผytkownika i logiki wykonawczej, zamiast trzymaฤ‡ duลผฤ… iloล›ฤ‡ danych w globalnych zmiennych Taskera.

๐Ÿ› ๏ธ Gล‚รณwne funkcje

Obsล‚uguje bardzo duลผe fragmenty tekstu

Duลผe fragmenty sฤ… zachowane, zamiast byฤ‡ skracane do krรณtkiego podglฤ…du schowka. Ekstremalnie duลผe wpisy mogฤ… byฤ‡ przechowywane osobno na dysku, podczas gdy SQLite przechowuje metadane i podglฤ…d.

Historia zasilana SQLite

Historia schowka jest przechowywana lokalnie w:

/Tasker/ClipH/db/cliph.db

To sprawia, ลผe przeszukiwanie i przeglฤ…danie historii jest responsywne, bez zapeล‚niania globalnych zmiennych Taskera zawartoล›ciฤ… schowka.

Wykrywanie typu schowka

ClipH rozrรณลผnia miฤ™dzy normalnym tekstem, dล‚ugim tekstem, adresami URL, tekstem zawierajฤ…cym adresy URL, poleceniami, kolorami, plikami, obrazami i zrzutami ekranu.

Responsywny pล‚ywajฤ…cy nakล‚adka

Kopiowanie czegoล› moลผe wyล›wietliฤ‡ maล‚ฤ… nakล‚adkฤ™ w stylu Material z akcjami dla bieลผฤ…cego elementu w schowku.

Nakล‚adka jest ponownie uลผywana i aktualizowana w miejscu, zamiast nieustannie tworzyฤ‡ nowe okna.

Obsล‚uga zrzutรณw ekranu

Zrzuty ekranu mogฤ… byฤ‡ wykrywane i dodawane bezpoล›rednio do historii ClipH.

Istnieje rรณwnieลผ ochrona przed typowym problemem Androida, gdzie pojedynczy zrzut ekranu moลผe wywoล‚aฤ‡ zarรณwno zdarzenie systemu plikรณw, jak i zdarzenie schowka, co w przeciwnym razie tworzyล‚oby duplikaty wpisรณw lub nakล‚adek.

Wsparcie dla obrazรณw

ClipH dziaล‚a z adresami URI obrazรณw w formacie content:// Androida i moลผe podglฤ…daฤ‡, otwieraฤ‡ i udostฤ™pniaฤ‡ obrazy, nie wymagajฤ…c najpierw konwersji wszystko na pliki tymczasowe.

Przeglฤ…darka historii

Interfejs uลผytkownika historii obsล‚uguje wyszukiwanie/filtracjฤ™, wyล›wietlanie szczegรณล‚รณw elementรณw, kopiowanie elementรณw z powrotem do schowka, udostฤ™pnianie, usuwanie, edytowanie i oznaczanie wpisรณw jako ulubionych.

Podglฤ…dy URL

Kiedy skopiowany element zawiera URL, ClipH moลผe wydobyฤ‡ i oczyล›ciฤ‡ link, usunฤ…ฤ‡ powszechne parametry ล›ledzenia i pobraฤ‡ podstawowe metadane strony.

Wbudowany WebView

URL-e mogฤ… byฤ‡ otwierane w pล‚ywajฤ…cym, zmiennym WebView.

Zawiera kontrolki nawigacyjne, przeล‚adowanie, kopiowanie URL, otwieranie w przeglฤ…darce, tryb czytnika i standardowe edytowalne pole adresu Androida z natywnymi funkcjami zaznaczania tekstu / kopiowania / wklejania.

Tryb czytnika

ClipH zawiera rรณwnieลผ lekkฤ… widok czytnika, ktรณry stara siฤ™ wydobyฤ‡ czytelny tekst ze stron internetowych i usunฤ…ฤ‡ skrypty, nawigacjฤ™, stylizacjฤ™ i inne zbฤ™dne elementy strony.

Pierwszeล„stwo lokalne

Historia schowka pozostaje na urzฤ…dzeniu. Nie ma zewnฤ™trznej bazy danych w chmurze ani zewnฤ™trznej usล‚ugi schowka.

Nie sฤ… wymagane zewnฤ™trzne wtyczki Taskera

Projekt wykorzystuje sam Tasker, interfejsy API Androida, kod Java / BeanShell i SQLite.

๐ŸŽ›๏ธ Personalizacja

ClipH zawiera wล‚asny ekran Ustawieล„.

Moลผesz obecnie konfigurowaฤ‡ takie elementy jak:

powiadomienia o URL schowka

pล‚ywajฤ…ca nakล‚adka WebView wล‚ฤ…cz/wyล‚ฤ…cz

nakล‚adka zrzutu ekranu wล‚ฤ…cz/wyล‚ฤ…cz

dล‚ugoล›ฤ‡ wyล›wietlania nakล‚adki

skalowanie nakล‚adki

maksymalna liczba wpisรณw w historii

folder przechowywania ClipH

Domyล›lny limit historii wynosi 500 elementรณw, ale moลผna go dostosowaฤ‡ w zaleลผnoล›ci od tego, ile historii chcesz zachowaฤ‡.

Ulubione sฤ… zachowywane podczas automatycznego czyszczenia historii.

โš™๏ธ Instalacja / Uprawnienia

Importuj projekt do Taskera

Importuj ClipH z powyลผszego linku TaskerNet.

Rysuj nad innymi aplikacjami

Wymagane dla pล‚ywajฤ…cej nakล‚adki schowka, UI WebView i trybu czytnika.

Dostฤ™p do wszystkich plikรณw / zarzฤ…dzaj pamiฤ™ciฤ… zewnฤ™trznฤ…

ClipH przechowuje swojฤ… bazฤ™ danych, duลผe wpisy schowka, zrzuty ekranu i pliki wykonawcze w:

/Tasker/ClipH/

Optymalizacja baterii

Zdecydowanie zalecam wykluczenie Taskera z optymalizacji baterii, jeล›li chcesz niezawodnego monitorowania schowka w tle.

๐ŸŽจ Uznanie / Inspiracja

Chcฤ™ rรณwnieลผ oddaฤ‡ zasล‚uลผonฤ… czeล›ฤ‡.

Oryginalny pomysล‚ i wizualna forma nakล‚adki schowka byล‚y inspirowane czymล›, co zostaล‚o udostฤ™pnione na tym subreddicie jakiล› czas temu.

Uwaลผam, ลผe pomysล‚ pล‚ywajฤ…cego WebView/nakล‚adki moลผe w rzeczywistoล›ci pochodziฤ‡ z innego projektu zamieszczonego tutaj przez innฤ… osobฤ™.

Niestety, nie pamiฤ™tam juลผ nazw uลผytkownikรณw ani dokล‚adnych oryginalnych postรณw, wiฤ™c nie mogฤ™ ich wล‚aล›ciwie powiฤ…zaฤ‡. Przepraszam za to.

Nie chcฤ™ przedstawiaฤ‡ tych pomysล‚รณw interfejsu jako caล‚kowicie moich. Czerpaล‚em inspiracjฤ™ z tego, co widziaล‚em tutaj, a potem przebudowaล‚em i rozszerzyล‚em fundamenty systemu w to, czym jest teraz ClipH.

Jeล›li ktรณryล› z oryginalnych autorรณw przypadkiem rozpozna swojฤ… pracฤ™, niech ล›miaล‚o wskaลผe to, a ja chฤ™tnie dodam odpowiednie uznanie.

โš ๏ธ Maล‚e zastrzeลผenie

To wciฤ…ลผ projekt Taskera, a nie samodzielna aplikacja Android.

Duลผa czฤ™ล›ฤ‡ UI i logiki jest zaimplementowana bezpoล›rednio w kodzie Java / BeanShell, wiฤ™c wersje Androida, wersje Taskera i specyficzne dla producentรณw zachowanie mogฤ… czasem przynieล›ฤ‡ interesujฤ…ce niespodzianki, poniewaลผ najwyraลบniej obsล‚uga schowka w Androidzie potrzebowaล‚a wiฤ™cej sposobรณw, by staฤ‡ siฤ™ skomplikowanฤ….

Gล‚รณwnie zbudowaล‚em i testowaล‚em ClipH w oparciu o moje wล‚asne uลผytkowanie, wiฤ™c raporty o bล‚ฤ™dach i ulepszenia sฤ… mile widziane.

Mam nadziejฤ™, ลผe to bฤ™dzie przydatne dla kogoล› innego, kto rรณwnieลผ zmฤ™czyล‚ siฤ™ menedลผerami schowka decydujฤ…cymi, ลผe ich fragment kodu liczฤ…cy 20 000 linii wyraลบnie nie byล‚ wystarczajฤ…co waลผny, by go zachowaฤ‡.

reddit.com
u/Szatanakroll โ€” 3 days ago
โ–ฒ 1 r/tasker

Need an idea for Niagara Launcher with Tasker

I have a Xiaomi phone and I use the Niagara launcher. However, Xiaomi doesn't allow the home button to be long-pressed to trigger the search circle. Only the system launcher is allowed.

I found a task that able to trigger the circle the search using a Java on Tasker.net.

What scenarios are possible with this for using the circle search option with Niagara launcher.

Do you have an idea?

I tried Niagara button trigger the task but only works on home screen. I need circle the search on all apps and all phone.

reddit.com
u/Impossible-Tell-2338 โ€” 2 days ago
โ–ฒ 2 r/tasker

Vibrate Task not working on Android 16/LineageOS 23.2.

I've (finally?) updated my phone from 10 to 16 (LineageOS 17.1 to 23.2) but now the Vibrate Task does not work at all. It simply does nothing. It worked fine on 10/17.1, and the phone vibrates correctly on notifications or other system things, so the vibrator isn't broken.

I can't see anything related to it in the system log either.

Has somebody got an idea on that one?

reddit.com
u/Bobby_Bonsaimind โ€” 3 days ago
โ–ฒ 7 r/tasker

[DEV] I built an open-source app that turns your smartband's media controls into Smart Home/Webhook triggers (Band Trigger v1.5.1)

Hey everyone,

I wanted to share a project I've been working on. I needed a way to trigger my Home Assistant routines and webhooks directly from my wrist, but my smartband only supported basic media controls. So, I built an app called Band Trigger.

Basically, it uses Android's media session to "hijack" the play/pause/next buttons on your watch. When your music is paused, the app takes over. Instead of playing a song, pressing the button on your watch sends an HTTP GET request in the background.

I just released version 1.5.1 and added a bunch of quality-of-life stuff based on early feedback:

  • Folders & Custom Layout: You can now group your triggers into folders and drag/drop them however you like on the phone. The cool part is that the watch UI will perfectly mirror the exact order you set up in the app.
  • Watch Navigation: Folders show up as [ ๐Ÿ“ Folder Name ] on the watch. If you go into a folder, there is an [ ๐Ÿ  Exit Folder ] option at the very bottom of the list to easily back out.
  • Real-time feedback: The "track title" on your watch screen dynamically changes to [ ON ] or [ OFF ] so you know if your webhook actually fired.
  • Extra modules: I also threw in a feature to use your watch to silently snap a photo from your phone's camera or start/stop a background audio recording.

A quick tip for the setup: There's an option in the app called "Hijack Band Focus" that asks for notification access. I highly recommend turning this on. It automatically forces the app to take over your watch's media screen the second your regular Spotify/YouTube audio pauses, so you never have to pull your phone out to reopen the app manually.

I originally developed and tested this on my own Galaxy Fit 3. However, since it relies on standard Android media protocols (AVRCP), it should theoretically work on pretty much any smartband or smartwatch (Mi Band, Amazfit, Garmin, WearOS, etc.).

I would love for you guys to test it out and let me know how it handles on your specific devices. It is completely free and open-source.

Let me know what you think, or if you run into any bugs!

reddit.com
u/Mental_Ad5250 โ€” 4 days ago
โ–ฒ 26 r/tasker

[Plugin Share] AM Tasker Plugins - A Free Collection Of Tasker Action Plugins packed with Extraordinary feature...!

๐Ÿš€ Introducing AM Tasker Plugins โ€” just launched!

A brand new toolbox of action plugins for Tasker โ€” colors, QR codes, VPN control, regex, Termux scripts, raw UDP packets, and more, ready to drop straight into your automations.

๐Ÿ’ป AM Termux

Runs Bash, Python, Node, Ruby, or PHP scripts inside Termux, with named sessions and guided setup.

Demo : [AM Termux]

โ†ฉ๏ธ AM Custom Keyboard Return - Goto Reddit Intro Post

AM Custom Keyboard is a keyboard app I built with live transliteration and a Tasker Automation feature โ€” type a trigger anywhere, and it can hand your text off to a Tasker task. This plugin is the reply step: the task finishes and sends its result straight back into what you were typing.

Demo : [Demo AM Custom Keyboard Return]

๐Ÿ”— Check it out: [Download AM Custom Keyboard]

๐ŸŽจ AM Collect Pixel Colors

Reads colors from any image โ€” one pixel, a region, or a Top Color List or Blended Colors of a given region.

Demo : [AM Collect Pixel Colors]

๐Ÿ”ณ AM Create QR

Turns text, links, or variables into a QR code image, saved and ready to use.

๐Ÿ” AM Decode QR

Scans an existing QR image and gives you back the text inside it.

Demo : [AM Create QR & AM Decode QR]

๐Ÿงฎ AM Data Processor

Reads or edits one exact value inside JSON or array data, no manual parsing needed.

Demo : [AM Data Processor]

๐Ÿ”’ AM OpenVPN

Starts, pauses, resumes, or stops an OpenVPN for Android profile from a task.

Demo : [AM OpenVPN]

๐Ÿ”Ž AM RegEx

Finds, extracts, or replaces text with full regex power โ€” groups, lookaheads, backreferences, and Perl-style case conversion โ€” all from a task.

Demo : [AM RegEx]

๐Ÿ“ก AM UDP Client

Sends a UDP packet to any address, with the option to listen for a response.

Demo : [AM UDP Client]

๐Ÿ“ค AM Open With

Lets other apps "Share" or "Open With" a file straight into a Tasker automation.

Demo : [AM Open With]

๐Ÿ“– Every plugin comes with its own guide built right into the app โ€” clear steps, examples, and what each field does.

This is v1.0.0 โ€” the toolbox starts here. ๐Ÿ‘‡

๐Ÿ“ฅ Download it now

๐Ÿ”— github.com/adiraimaji/AMTaskerPluginsReleases

YouTube Playlist ๐Ÿ‘‰All Plugin Demo Playlist

#Android #Tasker #Automation #Termux #OpenVPN #QRCode #RegEx #NewApp

u/AdiraiMaji โ€” 5 days ago
โ–ฒ 0 r/tasker

Enhancement Request: Ability to FILTER search responses

Akin to the post here but perhaps a little different enough to warrant this...

In my case, I am searching for HTTP Request items in my current Tasker configuration.

The problem comes because a have ALOT of them - mostly in the form of Actions but also some in the form of Profiles.

Digging through the search results to find the Profiles buried along with all of the Actions is a real PIA. It would be so great if there was a way to filter Action/Profile/Variable!

I have tried, for example, searching "event: HTTP Request:" - which is how these are labeled in the search results - when I can actually find them. But that yields no search results whatsoever. I have tried all of the various options (contains, etc) to no avail.

Perhaps there is some other way to do this? Thanks!

reddit.com
u/TooManyInsults โ€” 4 days ago
โ–ฒ 6 r/tasker

Banking apps don't like accessibility setting for tasker switched on

Banking apps are nowadays not happy with Tasker accessibility switched on. We can have tasker still run with accessibility for tasker switched off, but I'll lose accessibility volume to control my Bluetooth device volume. Any ideas?

reddit.com
u/Fluid_Ordinary_285 โ€” 5 days ago
โ–ฒ 1 r/tasker

[HELP] I'm working on a position aware Custom Toast task

Hi all, I'm working on a custom Toast/Flash task, through which a new toast is positioned vertically upwards if a toast is already flashing.

To track if a toast is already being displayed I am using a count (%Toast_count) and a state profile which is active when %Toast_count > 0.

Here is the project. It has the main task 'POSITION FLASH', three tasks to create test toasts, and a debug to quickly reset %Toast_count to 0. There's also the profile 'POSITION FLASH' which I described above.

However, the project is not working properly. New toast does get shifted upwards sequentially, but the count doesn't get reduced. I have also tried setting collision handling in the profile task to 'Run Both Together'. No luck.

Need some help.

Taskernet link: https://taskernet.com/shares/?user=AS35m8kchB%2BWHBCULXKQZoBHxBzUFNOZuKtVmsq9Lj2FKL8MaFi4RlSCwYs%2Bc%2BacVzTcrJE%3D&id=Project%3ATOAST

Edit: Btw, %dur, %white, and %black are project variables; the latter two being #FFFFFFFF and #FF000000.

    Project: TOAST
    
    Profiles
        Profile: POSITION TOAST
        	State: Variable Value  [ %Toast_count > 0 ]
        
        
        
        Enter Task: Anon
        Settings: Run Both Together
        
        A1: Wait [
             MS: %dur
             Seconds: 0
             Minutes: 0
             Hours: 0
             Days: 0 ]
            If  [ %dur Set ]
        
        A2: Variable Subtract [
             Name: %Toast_count
             Value: 1
             Wrap Around: 0 ]
        
        
    
    Tasks
        Task: Debug: Reset Count
        
        A1: Variable Set [
             Name: %Toast_count
             To: 0
             Structure Output (JSON, etc): On ]
        
        
    
        Task: Flash Test 1
        
        A1: Perform Task [
             Name: POSITION FLASH
             Priority: %priority
             Parameter 1 (%par1): Test position 1
             Parameter 2 (%par2): 8000
             Structure Output (JSON, etc): On ]
        
        
    
        Task: Flash Test 2
        
        A1: Perform Task [
             Name: POSITION FLASH
             Priority: %priority
             Parameter 1 (%par1): Test position 2
             Parameter 2 (%par2): 7000
             Structure Output (JSON, etc): On ]
        
        
    
        Task: Flash Test 3
        
        A1: Perform Task [
             Name: POSITION FLASH
             Priority: %priority
             Parameter 1 (%par1): Test position 3
             Parameter 2 (%par2): 6000
             Structure Output (JSON, etc): On ]
        
        
    
        Task: POSITION FLASH
        
        Variables: [ %base_position:has value %black:has value %white:has value ]
        
        A1: Variable Set [
             Name: %dur
             To: %par2
             Structure Output (JSON, etc): On ]
        
        A2: Variable Set [
             Name: %toast_position
             To: %base_position + 60*%Toast_count
             Do Maths: On
             Max Rounding Digits: 3
             Structure Output (JSON, etc): On ]
        
        A3: If [ %darkModeEnabled ~ true ]
        
            A4: Flash [
                 Text: %par1
                 Tasker Layout: On
                 Background Colour: %white
                 Timeout: %dur
                 Continue Task Immediately: On
                 Text Colour: %black
                 Dismiss On Click: On
                 Position: Bottom,0,%toast_position
                 Use HTML: On ]
        
        A5: Else
        
            A6: Flash [
                 Text: %par1
                 Tasker Layout: On
                 Background Colour: %black
                 Timeout: %dur
                 Continue Task Immediately: On
                 Text Colour: %white
                 Dismiss On Click: On
                 Position: Bottom,0,%toast_position
                 Use HTML: On ]
        
        A7: End If
        
        A8: Variable Add [
             Name: %Toast_count
             Value: 1
             Wrap Around: 0 ]
reddit.com
u/Ghunegaar โ€” 5 days ago
โ–ฒ 3 r/tasker

What is the best approach for child phone control (app freezing & internet access)?

Hi everyone,

Iโ€™m trying to figure out the best, most reliable way to control app and internet access on a child's phone (with blocking/restricting apps being the higher priority).

Here are the methods Iโ€™ve researched so far and the challenges Iโ€™m running into:

1. Shizuku

  • Pros: Highly capable and probably the cleanest way to control app-level and internet access via eBPF without needing a local VPN.
  • Dealbreaker: If the phone reboots and isn't connected to a trusted Wi-Fi network, Shizuku loses its privilege token. All rules reset, and apps regain internet access until accessing to a trusted Wi-FI network.

2. Tasker with Device Owner / Device Admin (App Freezing/Suspension)

  • Pros: Tasker as Device Owner provides powerful, native actions to suspend/freeze apps directly. It doesn't rely on third-party services and persists across reboots.
  • The Challenge: I haven't found a way to pull or generate a dynamic list of currently frozen or suspended apps. To keep track, I currently have to maintain a manual list of package names. I can work around this, but itโ€™s not ideal.

3. Internet Restriction

  • Local VPN setups (like Tasker's native Network Access action or NetGuard) work well without root, but they can degrade network performance/battery life and block the phone from using a real VPN service if needed. Using Shizuku is probably the best way.

Questions:

  1. Is there a way to get a list of all currently frozen/suspended apps on Android when using Device Owner?
  2. Does anyone have alternative suggestions or workflows for managing app limits and internet access reliably without full root access?

Thanks for any insights!

reddit.com
u/Nirmitlamed โ€” 6 days ago
โ–ฒ 3 r/tasker

Force stop app via Shizuku

I've set this up but then I saw someone recommend a fork of it - https://github.com/thedjchi/Shizuku and when I go to install it on my phone I get the "App blocked to protect your device" banner and I cannot install it, there's no 'see more' and 'install anyway' etc. How do I get around this? The reason I am going for the fork is that I want it to fire automatically on start so that I can get the permission to force stop an app.

u/Skiizm โ€” 5 days ago
โ–ฒ 18 r/tasker

[Project Share] OLED/AMOLED Battery Saver

PROJECT UPDATED - The mesh of black pixels is now randomised. Different pixels are disabled each time you launch the overlay (preventing 'burn in').

This is my goodbye gift to the Tasker community. I popped in a few days ago to see what's going on (I was borrowing an Android phone). It's time for me to say goodbye.

As a little parting gift, here is a simple solution to draw a very fine mesh overlay covering all of your screen (including the status bar and navigation bar). The grid contains a series of tiny, single pixel, black squares. When shown, these squares have the effect of 'turning off' the pixels on your display.

Full touch control of elements on your screen is retained. Use your phone as normal.

This is only worth using on an OLED or AMOLED (including LTPO AMOLED) display.

50% of your screen will be switched off, this saves up to 60% of the battery used to power your display. This is because even a pixel in very low brightness uses a surprisingly high amount of power.

Features:

- Fade in and fade out animation when the overlay is created and closed

- Set the mesh pixel size and opacity in the variables provided (my advice is to keep opacity at 100% and the mesh size at the minimum '1'). If you make the grid size too big you will start to see the individual squares and it looks bad. At default settings, it is not possible to see individual squares with the naked eye.

- Separate close script provided to allow you to create your own automations/quick settings tiles etc.

The screen will dim slightly when you are using the overlay (this is predictable as we are turning off pixels). If you take a screenshot with the overlay, thumbnails might show as black until you maximise the image - then they display normally.

Mesh size: 1 = 2x2 pixels, 2 = 4x4 pixels, etc.

You can adjust the variable values to use in possible screen security or privacy projects also.

Tasker needs Accessibility service enabled.

SDK >=33 required.

Good luck to everyone with their future projects!

Download here

u/iohwiri โ€” 6 days ago
โ–ฒ 13 r/tasker

[Project Share] Cursor Trackpad and Scrollpad

UPDATE: Changelog

โ€ข Added 'zoompad' feature. Long press on the outermost top corner to control zoom in webpages and images etc. Swipe up to zoom in and swipe down to zoom out.

โ€ข Long press bottom inner corner for back button command.

โ€ข Long press bottom outer corner for home/go home button command.

โ€ข Set the vertical offset of the trackpad. See the optional variables in the Task.

โ€ข Set cursor size. See the optional variables in the Task.

A cursor trackpad with scrollpad and 'zoompad' functions

I've seen the very convoluted and unnecessarily technical implementation of a cursor trackpad developed for Macrodroid. Here is a much more straightforward Tasker equivalent - including a scrollpad.

Requirements:

โ€ข Tasker Accessibility service enabled

โ€ข Tasker Draw Over Other Apps permission granted

Features:

โ€ข Fully customisable (colours, trackpad size, trackpad position, trackpad corner roundness). See the optional variables in the launch/open Task.

โ€ข Separate launch and close tasks (set up your own profile/shortcut etc.).

โ€ข Tap trackpad to click - double tap trackpad to long press.

โ€ข Long press top inner corner of trackpad to toggle between trackpad/cursor mode and scrollpad mode. Top right of trackpad if it is on the left side of the screen and top left corner of the trackpad if it is on the right hand side of your screen.

โ€ข Long press on the outermost top corner to control zoom in webpages and images etc. Swipe up to zoom in and swipe down to zoom out. The screen content must support a pinch to zoom gesture to use this feature.

Note - I deliberately used two different methods for trackpad control. The trackpad/cursor uses an 'Absolute Mapping' system. This means that the cursor will start moving from the relative position that your drag on the trackpad starts. If you start dragging from the top right corner of the trackpad, the cursor starts moving from the top right corner of the screen. You can quickly reposition the cursor to your desired location. This also removes the need to repeatedly lift your finger to move the cursor like you have to on a laptop touchpad.

When your finger isn't on the trackpad, the trackpad acts as a touchpad to receive taps. A single tap is a 'click' at the cursor location, a double tap will act as a long press at the current cursor location.

I am not going to be around for a short while as I am travelling. Please help each other out if you can. I will be around tomorrow. Thank you.

Download

u/tunbon โ€” 5 days ago
โ–ฒ 121 r/tasker+3 crossposts

[Guide] Turn a Wear OS Watch into a KOReader Remote, No Phone Needed While Reading

A couple of weeks ago I posted my first prototype here, using the rotating bezel on my Galaxy Watch 8 Classic as a KOReader page turner. A few of you were interested in a proper guide, so here is the slightly supersized version ๐Ÿ˜…

There are already some great projects for remotely controlling KOReader, including the Kindle Bluetooth Controller plugin and this cool DIY Wi-Fi page turner. I wanted to try a different approach using hardware I already had, with minimal Kindle-side setup.

My original version used Tasker + AutoWear, with the phone relaying commands to KOReader. While experimenting with it, I discovered that AutoWear can send the HTTP requests directly from the watch. That means Tasker and the phone can be removed from the runtime entirely.

So, after the initial configuration, the whole setup is simply:

Wear OS Watch โ†’ Wi-Fi โ†’ KOReader

The finished Four Screen controller handles page and chapter navigation, frontlight brightness, warmth, night mode and suspend, with optional rotary bezel/crown page turning on supported watches.

Setup should take around 30 minutes, and the phone is only needed for the initial AutoWear configuration.

What you need

  • Wear OS watch
  • Android phone for initial AutoWear setup
  • AutoWear app installed on phone and watch
  • E-Reader running KOReader
  • All 3 devices connected to the same trusted Wi-Fi network. Phone required only for initial setup.

ย 

1. Enable KOReader's HTTP server

First, make sure the e-reader is connected to Wi-Fi.

In KOReader, open the Network menu under the settings tab โš™๏ธ and select: Network Info

Note the e-reader's IP address. For example: 192.168.3.5

Your IP will probably be different. Next open:

Tools๐Ÿ› ๏ธ โ†’ More Tools โ†’ KOReader HTTP Inspector

Select: Start HTTP server. I left the default port unchanged: 8080

Your base URL will therefore be: http://YOUR-EREADER-IP:8080/koreader/event

For example: http://192.168.3.5:8080/koreader/event

>โ—Security note: KOReader's HTTP server allows devices on your network to trigger KOReader actions. I recommend only enabling it on networks you trust.

2. Test KOReader before configuring AutoWear

On your phone connected to the same network, open:

http://YOUR-EREADER-IP:8080/koreader/event

You should see KOReader's list of available events. Now open a book in KOReader and test:

http://YOUR-EREADER-IP:8080/koreader/event/GotoViewRel/1

The page should move forward.

You can also test for the previous page:

http://YOUR-EREADER-IP:8080/koreader/event/GotoViewRel/-1

If the book moves forward and backward, the KOReader/network side is working.

3. Create a basic AutoWear test screen

Before building the full controller, I recommend testing AutoWear with a simple screen to make sure it all works.

On the Android phone open:

AutoWear โ†’ Screens โ†’ + โ†’ Single Screen

Give the screen any name, for example:

KOReader Test

Under Actions, enter:

Setting Enter
Tap http://YOUR-IP:8080/koreader/event/GotoViewRel/1
Long Tap http://YOUR-IP:8080/koreader/event/GotoViewRel/-1
Double Tap http://YOUR-IP:8080/koreader/event/RequestSuspend
Command to Show &APPOPENEDCOMMUTE&
Trigger Events OFF

Trigger events are set to off as we are not sending commands back to Tasker. The watch itself is sending the HTTP request. Save this for now.

On the watch, open AutoWear App Settings and scroll down till you see Launcher Apps. Enable the Commute Launcher app. This creates an app icon in the Wear OS apps tray. Opening the Commute app will now display your KOReader screen that was configured due to Command to Show setting. Save this and try it out and see if these functions work on the E-reader.

Once this works, you can move on to the Four Screen controller.

4. Create the Four Screen controller

In AutoWear on the phone go to:

Screens โ†’ + โ†’ Four Screen

Main settings

Setting Value
Screen Name Any name you want
Command to Show &APPOPENEDCOMMAND&
Command Prefix Leave blank
Trigger Events Off
Animation None, or change to preference

The text settings are not important if you plan to use a custom background image later.

Configure the Zone controls

Use the following mappings:

Anywhere you see YOUR-IP replace it with your e-reader's actual IP address.

Zone Interaction KOReader Action Full URL
Right Tap Next Page http://YOUR-IP:8080/koreader/event/GotoViewRel/1
Right Long Tap Next Chapter http://YOUR-IP:8080/koreader/event/GotoNextChapter
Left Tap Previous Page http://YOUR-IP:8080/koreader/event/GotoViewRel/-1
Left Long Tap Previous Chapter http://YOUR-IP:8080/koreader/event/GotoPrevChapter
Top Tap Frontlight +2 http://YOUR-IP:8080/koreader/event/IncreaseFlIntensity/2
Top Swipe Down Cooler / Warmth -2 http://YOUR-IP:8080/koreader/event/DecreaseFlWarmth/2
Bottom Tap Frontlight -2 http://YOUR-IP:8080/koreader/event/DecreaseFlIntensity/2
Bottom Swipe Up Warmer / Warmth +2 http://YOUR-IP:8080/koreader/event/IncreaseFlWarmth/2
Center Tap Toggle Frontlight http://YOUR-IP:8080/koreader/event/ToggleFrontlight
Center Long Tap Toggle Night Mode http://YOUR-IP:8080/koreader/event/ToggleNightMode
Center Double Tap Suspend http://YOUR-IP:8080/koreader/event/RequestSuspend

For all five screen zones, set:

Color: #00101010

I use this because leaving the colour blank sometimes caused unexpected colour overlays in AutoWear. This keeps the zones effectively transparent over the background image.

Advanced settings

My current settings are:

Setting Value
Screen Mode Keep On
Animation None
Time Out 180 seconds
Haptic Feedback On
Rotary Command Down http://YOUR-IP:8080/koreader/event/GotoViewRel/1
Rotary Command Up http://YOUR-IP:8080/koreader/event/GotoViewRel/-1

You can shorten the timeout or disable haptic feedback if you want to reduce watch battery usage.

If your watch supports rotary input, set up rotary commands. If the direction feels backwards on your watch, simply swap the two.

I keep haptics enabled because it gives useful tactile feedback when watch successfully sends the HTTP request to Koreader.

Enable the Command Launcher App on the AutoWear Watch Settings

>On my Galaxy Watch I then mapped:
Double-press Home โ†’ Command App
So opening the controller only takes a double press. Other Wear OS watches can use whatever app shortcut method they support.

5. Add a custom background

The background is purely visual. AutoWear's transparent touch zones still handle the actual controls.

You can use one of the provided backgrounds

https://imgur.com/a/77M2DOp

(I can't attach images directly to this post because it contains a video.)

Or, if you've changed any of the controls, you can easily create a background that matches your own setup.

Create a background for your own configuration

  • Finish configuring your Four Screen controller in AutoWear.
  • Open the configuration overview - the page that lists all of your sections, gestures and commands. Take a long/scrolling screenshot of the whole page. [My example is uploaded to Imgur.]
  • Upload that screenshot to an image generator. Because the screenshot contains your actual AutoWear configuration, the AI can use it as a reference for what each area of the watch should represent.
  • Ask it to create a 1:1 square image designed for a circular smartwatch display. Keep important icons and text away from the extreme corners, since those areas will be outside the visible circle on a round watch.
  • Once you're happy with the generated image, save it to your phone and select it under Background Image in the AutoWear Four Screen configuration.
  • When AutoWear asks whether it should create/copy the file for the watch, allow it to do so.

6. Troubleshooting

If something is not responding, first test the KOReader URL again in a browser:

http://YOUR-IP:8080/koreader/event/GotoViewRel/1

If that also fails, check:

  • the e-reader is still connected to Wi-Fi
  • the watch and e-reader are on the same network
  • the KOReader HTTP server is still running
  • the e-reader's IP address has not changed

You can also open:

http://YOUR-IP:8080/koreader/event

to see KOReader's full list of available events.

That page is useful if you want to experiment with additional commands or verify the correct endpoint for your KOReader version.

I have occasionally found AutoWear becomes slow after a lot of testing/configuration. Restarting the watch has usually fixed it for me.

If your e-reader's IP changes regularly, a DHCP reservation on your router can make the setup more reliable.

That's it!!๐Ÿฅ‚

Once everything is configured I turned off Toast notifications on the AutoWear phone settings as it is no longer part of my runtime setup. The watch sends commands directly to KOReader over the local network.

Hopefully this guide helps y'all! If anyone tries this on another Wear OS watch, I'd be interested to know if you made any changes. Lemme know if you have any questions

If you found this useful, consider supporting the developer by purchasing full AutoWear access. I started with the 1-week trial to make sure the setup worked for me, then bought the full version... it was around AUD $2.50 in my case.

Happy reading / modding!

u/Sinister_x97 โ€” 9 days ago
โ–ฒ 0 r/tasker

Are the rich pickers gone?

It's been a while since I used Tasker so maybe this never existed and I made it up but I remember that Tasker used to offer some nicer pickers for certain values. For example when you want to launch an activity, it offers a list of available activities. Same when you want to use an application or more recently I tried to pick a file for a JavaScript execution and it was a plain text input. I had to manually type the path.

I'm very surprised that if it ever existed it was removed, but I'm even more surprised that if it never existed a mature application like Tasker, with almost a decade behind, is still in this kind of pre-production/beta UI phase.

reddit.com
u/Ok_Ad_9870 โ€” 7 days ago
โ–ฒ 11 r/tasker

[Project Share] Offline Voice Assistant

Been working on this project for a bit over a week. Thought I'd share. Basically a barebones replacement for Google Assistant that works completely offline.

https://taskernet.com/shares/?user=AS35m8lSOK3hovdEY1ld2RKeqRebL%2FZj9ovDLqy1hXenAKscGRCWl0q2YrzA6kaS0Mgpntmj&id=Project%3AAssistant

Launched by holding down either volume button or will hijack Google Assistant launches (so works with okay/hey google).

I used FUTO Voice Input with English-244 model for testing. Other voice models might parse differently so would need command modifications.

Uses AutoInput, AutoShare and AutoContact plugins for some functions.

Will unlock and relock screen as required for AutoInput functions if screen is off but will require creating an AutoInput function at the end of the Unlock task to swipe up and enter PIN/password/pattern.

Uses old assistant sound effects. Store .mp3 files in /Media/Assistant folder. https://drive.google.com/file/d/119AN45hXPc3rXUljk8G_QFEH97h7p7uj/view?usp=sharing

Commands

call/phone/ring [number/contact] (contact type) - starts phone call to phone number or contact with option to specify home/work/mobile. Requires AutoContact.

text/message/sms [number/contact] (contact type) - send text message to phone number or contact with option to specify home/work/mobile. Requires AutoContact.

(make/save/take) note [note] - Saves note to Google Keep. Requires AutoInput.

navigate/go (to) [location] - Open default maps app and navigate to location.

search/find/google (image/images/picture/pictures/youtube/music/poweramp/spotify/maps) [search terms] - Open web or image search (DuckDuckGo default or Google if specified) in default browser or searches specified app. Music searches Poweramp - needs modification if you use a different app. Uses AutoShare for some searches.

time/date/time (and) date - speaks the time, date or time and date.

play (spotify/youtube/music/poweramp/mx player/stop) [song/artist] - opens and resumes playback in specified app or will search and play for specified song/artist (only works for Spotify or music/Poweramp). Music searches Poweramp - needs modification if you use a different app. No app specified will search Poweramp. Uses AutoShare for song search and AutoInput to start playback on Spotify.

(set) alarm (label) [time am/time pm/number hours/number minutes/number hours (and) number minutes] - sets an alarm at specified time or specified time in the future. Saves parameters as alarm label.

(set/start) timer [number hours/number minutes/number hours (and) number minutes] - starts a timer for specified time.

open/launch/app [app name] - opens specified app.

gemini (command) - opens default voice assistant app to listen or inputs command directly into assistant. Uses AutoInput to input command.

Known Issues

Built for my setup. Some commands might not work properly depending on Android/app versions.

reddit.com
u/xXSnowyXx โ€” 6 days ago
โ–ฒ 6 r/tasker

Silence texts from non-contacts without having to special case all of my existing custom notifications / priority contacts inside Tasker

So it's political season, and I get texts asking for support many times a day. I'd like to mute (no sound or vibe) the notifications for these, but I also get actual important (but not time-critical) texts from non-contacts, so I don't want to delete them altogether. I don't mind reading the requests for money, but I don't want them interrupting me.

I also have a bunch of contacts that I've already added custom notifications for in the standard app, and I don't really want to have to recode all of those and find the audio files, and add DND overrides for priority contacts inside Tasker. There are enough that it would be hard to do inside Tasker without making mistakes. So my goal is "if it's not in my contacts, silence but keep the notification. If it is in my contacts, do whatever you would have done before"

And I don't want to touch phone calls, which I have handled pretty well already.

This seems like something that everybody would want, and I think IOS has it natively, but I haven't been able to get there.

Pixel 10 Android 17, in case that matters.

reddit.com
u/Mikeynolan โ€” 8 days ago
โ–ฒ 0 r/tasker

Regex pattern matching inconsistency

While working on a small task that uses two arrays, where for an element in array %names_array I need to find the corresponding elements in another array, I ran into what I believe is an inconsistency on how Tasker handles variable substitution within regular expressions.

As a simplified example, I have %names_array with two elements:

Do.Maguire 35

Da.Maguire 43

representing two people with the last name Maguire, each preceded with enough information to make the non-numeric part of each element unique (imagine the names are Donald Maguire and David Maguire). In use, the array contains about 50 names, but this is just an example.

I need to find all elements that may correspond to the full name Donald Maguire. To do this I'm extracting the last name from the full name, setting the variable %last_name to Maguire. I then use Array Set to populate %matches_array with matching elements from %names_array:

    A7: Array Set [
         Variable Array: %matches_array
         Values: %names_array($,?~R^(\p{L}+\.)?%last_name\s{2}\d{2}$)
         Splitter: , ]

Unfortunately, what I end up with in %matches_array is two elements:

%names_array($

?~R^(\p{L}+\.)?%last_name\s{2}\d{2}$)

But if I instead set variable %regex to the desired pattern first, then reference that variable in the Array Set action:

    A3: Variable Set [
         Name: %regex
         To: ^(\p{L}+\.)?\%last_name\s{2}\d{2}$
         Structure Output (JSON, etc): On ]
    
    A4: Array Set [
         Variable Array: %matches_array
         Values: %names_array($,?~R%regex)
         Splitter: , ]

I get these two elements in %matches_array:

Do.Maguire 35

Da.Maguire 43

When using the Simple Match/Regex action, I get the opposite results - defining the Regex in a separate variable first doesn't work, and using the Regex directly in the action does work.

This seems inconsistent to me. Below is a task description and and a task URL that demonstrate this. Am I missing something?

    Task: Regex Test
    
    A1: Array Set [
         Variable Array: %names_array
         Values: Do.Maguire  35,Da.Maguire  43
         Splitter: , ]
    
    A2: Variable Set [
         Name: %last_name
         To: Maguire
         Structure Output (JSON, etc): On ]
    
    A3: Variable Set [
         Name: %regex
         To: ^(\p{L}+\.)?\%last_name\s{2}\d{2}$
         Structure Output (JSON, etc): On ]
    
    A4: Array Set [
         Variable Array: %matches_array
         Values: %names_array($,?~R%regex)
         Splitter: , ]
    
    A5: Flash [
         Text: %matches_array()
         Tasker Layout: On
         Background Colour: #FFD03636
         Timeout: 10000
         Dismiss On Click: On
         Position: Top ]
    
    A6: Array Clear [
         Variable Array: %matches_array ]
    
    A7: Array Set [
         Variable Array: %matches_array
         Values: %names_array($,?~R^(\p{L}+\.)?%last_name\s{2}\d{2}$)
         Splitter: , ]
    
    A8: Flash [
         Text: %matches_array()
         Tasker Layout: On
         Background Colour: #FFD03636
         Timeout: 10000
         Dismiss On Click: On
         Position: Top ]
    
    A9: Simple Match/Regex [
         Type: Regex
         Text: %names_array(1)
         Regex: %regex ]
    
    A10: Flash [
          Text: %mt_match
          Tasker Layout: On
          Background Colour: #FFD03636
          Timeout: 10000
          Dismiss On Click: On
          Position: Top ]
    
    A11: Variable Clear [
          Name: %mt_match ]
    
    A12: Simple Match/Regex [
          Type: Regex
          Text: %names_array(1)
          Regex: ^(\p{L}+\.)?%last_name\s{2}\d{2}$ ]
    
    A13: Flash [
          Text: %mt_match
          Tasker Layout: On
          Background Colour: #FFD03636
          Timeout: 10000
          Dismiss On Click: On
          Position: Top ]

Task URL: Check out my Tasker Task "Regex Test!"

taskertask://H4sIAAAAAAAA/+1Y3W/aMBB/bv4KK+sq0Gi+E4IaMtHRTpXoHijqy9CQS1yaDRKUGLqq6v722TGEUEz4qjRtywvYd+fz785353OcDox/oKgJMQRxVBdF4E39uqiKAE/roiVVJev0DmEousKRQ2UTKUwGlkppR07fgxi5atW2TE1TFDLQHZkRKRulbMs2bEtRNduRUcr2PddSHZn80VkwQm4bDdBP0EExdmQ6p/Rx5LuqojgyHVBCo4/9MEiwwD5WRDBFdbGaACKIQg+5umkQGHSU0G5wxKSjwUxaF933ARyhuAejCD45MhFZkVVT2WYoXcPBxI8QALpZacLF1ND5i7V0cSUVcGQGnWOFyrHCNKqbrRjCGPeoKZtsmCHOiF0FOIsWDuuiIsorPD2HZ+TwzBlP5/CsGU9lvDzH8M7XNGqbPTPCvRHE/Qe+xWoO8h28kYecd6Z6zcoiP58E3hAtwCfUI+cWDuOESLaa0Uh+ICx5fjAY+nH/QYKBF4W+J+EkhaX2RevitvGl07tttK8a562LG/dkiM+I5WRFg8Y4y/CTAT6jDBb3vR11KnQ5dewgCifjuFQWPicDgaqUD9C5PyR1Dik56959SDwqXMXgmk4FHE0Q8O8BfkAkWR9hDCBIBCvgnvgYgZByHv0YHWCBepgF2pIFAgP+CQaAAAzBHQKw30dxjDxA4RMy3eQAuNocrpyJDkojJXfHENsvMk/x0xi5X1vf4RRKQxgMJAZkdwBME8sZmSYNyyqZpdXanFfnec2t19mLoaSW+XVVT8W/lbrj59bLh65U/rioxt34WXvpeuTnmK/AmCvYWEY0bgG037wAZm8NZQnd8roVL2aZK6Uzq3XhtE44XoNq5UbJKjDXw9JyzlZ/tWztMSyxXm+WYVmpIe8uL5uKbukW/5Sr63XYqQ7S3ND2hueO2ta3DT9KtmggItpybWoeskHe3RTlf0Vfoe/bNiYptW3juFRLjisff7WZv9dUlR2bRmPvypC1oVQuCsR/UCBMbsBvUSD4AZ+zk/WHUmvjTfw2WVctsq7Ium2zzi7egMUbsHgD/uNvwLwmeuuHXq145xUXykqUODL98O4K7J99rHeF34LdAYW6FwAA

reddit.com
u/UnkleMike โ€” 8 days ago
โ–ฒ 6 r/tasker

Tasker on newer Samsung phones

Hey all

I posted before about being an old old buyer of Tasker. I used to use it on a Moto Droid however since then I switched to iPhone for about 17 years

Can anybody give me some tips on some good things I can use Tasker for on one of these newer Samsung phones I have the Z fold 8?

Thanks

reddit.com
u/masprague82 โ€” 9 days ago
โ–ฒ 35 r/tasker

[Project Share] Hail Replacer โ€“ Tasker Scene v2

Hi, I tried to replace Hail because some banking apps don't allow Hail, so I try to made it using Tasker Scene v2.

Here is the current features and project.

๐Ÿš€ Current Features

  • โ„๏ธ Freeze / Unfreeze apps
  • ๐Ÿ‘ค User Apps management
  • โš™๏ธ System Apps management
  • ๐Ÿงฉ UAD (Universal Android Debloater) integration
  • ๐Ÿ” Quick App Search
  • ๐Ÿ–ฑ๏ธ Long-press App Actions
  • โ„น๏ธ Open App Info
  • ๐Ÿ“Š Most Used Apps
  • ๐Ÿ• Recently Launched Apps
  • ๐Ÿ’พ Backup & Restore
  • โ™ป๏ธ Import Hail Freeze List
  • ๐Ÿ—„๏ธ SQLite-based app database
  • ๐Ÿ–ผ๏ธ App icon handling
  • ๐Ÿ“ก Shizuku monitoring

๐Ÿ”ง Requirements

  • Shizuku
  • Tasker

๐Ÿ“ธ Screenshots / Video Walkthrough

๐ŸŽฅ YouTube: https://m.youtube.com/watch?v=ArnunU07czE

โฌ‡๏ธ Download

Tasker Project: https://taskernet.com/shares/?user=AS35m8mzo7QA%2B73mVFz3Yj59GRrw7q32pIWQ%2FXiNVYdjYj46DGU8OiYFffXNvBT9KylhYc51m2M%3D&id=Project%3AHail+Replacer

Tasker URI: https://pastebin.com/raw/DskLJb5K

Tasker Description: https://pastebin.com/raw/R5mzgdya

Hope this helps! ๐Ÿ˜Š

If anyone have suggestions/ideas, All are welcome.

I'm excited to see how people will react!

Thanks

edit:

here is setup to start

https://youtu.be/jq6ElI0Fnnw

use dropbox apk of https://www.reddit.com/r/tasker/s/oi1Ri7QFEE if you face error

u/karthikn774 โ€” 10 days ago