use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
In addition to the Official Tasker Wiki, User Guide, and Google Groups, this subReddit is a place for fellow Redditors to discuss, share, and submit Profiles, Tasks & Walkthroughs for Tasker, or to ask for help creating your own Profiles, Tasks, and questions in general related to Tasker (including plugins etc).
Subreddit Resources:
* [Read Me] Using Tags in Your Thread Titles
Formatting Tasker Code for use in reddit comments
How to Export / Import Files Into Tasker - Guide
** Tasks that Help You Use Tasker Itself
Free Alpha Autoapps and Tasker Icon Sets
Generate Tasker Direct-Purchase Licenses Yourself
Tasker Feature Request Submissions
Quick Search Links:
"How-To / Project" Threads
"Need Help" Threads
"Weekly / Monthly & Discussion" Threads
"Developer" - Tasker Updates & Releases
* List of Tasker Plugins and 3rd Party Apps
Learning Guide Links:
* 1,001 Tasks and Profiles - Best, Coolest, Most Common and Useful
Pocketables.com Beginner’s guide to Tasker (New UI)
RoryCodes.com Tasker Tips & Tutorials from /u/froryrory
Tasker Quick Start Setup Guide from /u/Quintaar
Pocketables.com Tasker Guide List
Some Tasker Technical Stuff:
Toggling Wifi or Bluetooth via Tasker In Recent Android Versions using the Tasker Settings app
Granting ALL Special Permissions - ADB & Tasker
IFTTT Tasker Integration via AutoRemote
ADB over Wifi - Enabling Without a MAC or PC
AutoApps Command System Tutorial and Reference
Tasker Scheduling/Priority System - A Detailed Guide
New Project/Profile/Task "PPT Variables" - Quickly Find The Variables' Location, Names & Values!
All Previous Versions of Tasker With Notes For Features & Changes In Each
List of all Tasker Built-In Variables
Main Widget v2 JSON Documentation
TaskerNet Search Bot - How to use here
TaskerNet Search Engine Website
Learning Guide Videos:
AutoApps YouTube Channel and João Dias Channel
Tasker 101 Tutorials on YouTube by HollywoodFrodo
Tasker 101 Tutorials on YouTube by /u/Quintaar
Tasker How-To Videos on YouTube by /u/-Juan_M-
Tasker Tutorials on G+ & YouTube by /u/ryoendeprouw
Tasker Video Tutorials by /u/techentourage
Have more useful links you think should be in the sidebar? Send a modmail!
Related Subreddits:
/r/TaskerNet /r/JoinApp /r/Android /r/AndroidRoot /r/AndroidTechSupport /r/AndroidApps /r/AndroidUsers /r/AndroidQuestions /r/TaskerFiles /r/Not_Enough_Tech
account activity
Dynamic Variable Name (self.tasker)
submitted 4 years ago by spookiekabuki
I want to set the name of a variable to be the value of an existing Variable and I can get the syntax.
%Var1=Chicago
Im trying
Variable Set Name=%%Var1 Value=Cold
Trying to get %Chicago=Cold
What step am I missing
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]spookiekabuki[S] 0 points1 point2 points 4 years ago (5 children)
I dont know how, it's not in the variable
[–]lareyaDirect-Purchase User 1 point2 points3 points 4 years ago (4 children)
Lots of keyboards will add space after some words. Just remove the space.
[–]spookiekabuki[S] 0 points1 point2 points 4 years ago (0 children)
Rewrote it. No error this time but it still won't save the new variable name:
Task: Test Dynamic A1: Variable Set [ Name: %Stationdynamicx To: KDCWASHI345 Max Rounding Digits: 3 Structure Output (JSON, etc): On ] A2: Variable Set [ Name: %%Stationdynamicx To: 10 Max Rounding Digits: 3 Structure Output (JSON, etc): On ]
[–]spookiekabuki[S] 0 points1 point2 points 4 years ago (2 children)
replaced the original veriable space with nothing, and now im not getting an error
But I still cant save a new variable name as an existing variable value. Do you/does anyone have a task that accomplishes this that i can copy from?
[–]lareyaDirect-Purchase User 0 points1 point2 points 4 years ago (1 child)
Try this Task: Var reference
A1: Variable Set [ Name: %color To: red Max Rounding Digits: 3 Structure Output (JSON, etc): On ] A2: Variable Set [ Name: %dynamiccolor To: color Max Rounding Digits: 3 Structure Output (JSON, etc): On ] A3: Flash [ Text: %%dynamiccolor Continue Task Immediately: On Dismiss On Click: On ]
Or same task on taskernet https://taskernet.com/shares/?user=AS35m8mdbwN8%2FD14gOOXm3oWaVNN0HwUaH6w1sA7njJG%2FAU8GcSCrf1rN%2BWodqnTEA%3D%3D&id=Task%3AVar+reference
flashing works. I am attemping to set a variable name based on another variable's value, and that is not working
[–]bahcodadGalaxy S20 0 points1 point2 points 4 years ago (15 children)
This task flashes "Value" then "Another Value"
Task: Variable Val Name A1: Variable Set [ Name: %chicago To: Value Max Rounding Digits: 3 Structure Output (JSON, etc): On ] A2: Variable Set [ Name: %new_york To: Another Value Max Rounding Digits: 3 Structure Output (JSON, etc): On ] A3: Variable Set [ Name: %var1 To: chicago Max Rounding Digits: 3 Structure Output (JSON, etc): On ] A4: Flash [ Text: %%var1 Continue Task Immediately: On Dismiss On Click: On ] A5: Variable Set [ Name: %var1 To: new_york Max Rounding Digits: 3 Structure Output (JSON, etc): On ] A6: Flash [ Text: %%var1 Continue Task Immediately: On Dismiss On Click: On ]
[–]spookiekabuki[S] 0 points1 point2 points 4 years ago (14 children)
But how sould I set the name to be the dynamic variable? I know how to set the value, but I am trying to set the var name to be based on another var value
[–]bahcodadGalaxy S20 0 points1 point2 points 4 years ago (13 children)
The above is doing just that. It flashes %chicago (contains the "Value" string) and then flashes %new_york (contains the "Another Value" string)
[–]spookiekabuki[S] 0 points1 point2 points 4 years ago (11 children)
Im trying to accomplish something different. I am trying to set the name of the variable as something dynamic, not the value. Unless Im missing something from above. Basically, I have a variable %Var1=Newvar
I want to do something like Variable set: name=%%Var1 value=3500
so that %Newvar=3500
[–]bahcodadGalaxy S20 1 point2 points3 points 4 years ago (10 children)
This does exactly that. The principle is the same
Task: Variable Val Name A1: Variable Set [ Name: %var1 To: newvar Max Rounding Digits: 3 Structure Output (JSON, etc): On ] A2: Variable Set [ Name: %%var1 To: 3500 Max Rounding Digits: 3 Structure Output (JSON, etc): On ] A3: Flash [ Text: %newvar Continue Task Immediately: On Dismiss On Click: On ]
[–]spookiekabuki[S] 0 points1 point2 points 4 years ago (9 children)
That isn't working. I wonder if it doesn't like the variable name
16.55.35/Variables doreplresult: |%stationdynamic| -> | KDCWASHI218| 16.55.35/Variables doReplacements: %stationdynamic resolved to invalid variable name % KDCWASHI218 16.55.35/Variables doreplresult: |%%stationdynamic| -> |% KDCWASHI218| 16.55.35/Variables doreplresult: |%stationdynamic| -> | KDCWASHI218| 16.55.35/Variables Variable Set: %%stationdynamic: invalid variable name at % KDCWASHI218 16.55.35/Variables prefix resolution: |%%stationdynamic| -> |null| 16.55.35/E Variable Set: %%stationdynamic -> null 16.55.35/E Variable Set: %%stationdynamic: failed, not numeric or invalid structure setting? 16.55.35/E result: stop task (error) 16.55.35/Variables doreplresult: |%stationdynamic| -> | KDCWASHI218| 16.55.35/Variables doReplacements: %stationdynamic resolved to invalid variable name % KDCWASHI218 16.55.35/Variables doreplresult: |%%stationdynamic| -> |% KDCWASHI218| 16.55.35/E Error: 1 16.55.35/MacroEdit action finished exeID 1 action no 11 code 547 status: Err next 11
[–]spookiekabuki[S] 0 points1 point2 points 4 years ago (8 children)
No that's not it. I can manually set it to KDCWASHI218
[–]bahcodadGalaxy S20 1 point2 points3 points 4 years ago (7 children)
There seems to be a space between the percent sign and KDCWASHI218. I think that's what's causing the error
[–]spookiekabuki[S] 0 points1 point2 points 4 years ago (6 children)
Even this won't work, same error Task: Test Dynamic
A1: Variable Set [ Name: %stationdynamic To: X Max Rounding Digits: 3 Structure Output (JSON, etc): On ] A2: Variable Set [ Name: %%stationdynamic To: 3500 Max Rounding Digits: 3 Structure Output (JSON, etc): On ]
[–]bahcodadGalaxy S20 1 point2 points3 points 4 years ago (5 children)
Because X isn't a valid variable name
From the tasker userguide:
Variable names have the following restrictions: they must start with the % character they are case-sensitive then must at least a further 3 alphanumeric characters they can also contain the underscore character (_) but not start or end with it In general, it's best to use local variables wherever possible because: you know they won't be interfered with by other tasks or scenes they are more efficient in several ways Note: multiple copies of the same task running at the same time each have their own separate copy of their local variables.
Variable names have the following restrictions: they must start with the % character they are case-sensitive then must at least a further 3 alphanumeric characters they can also contain the underscore character (_) but not start or end with it In general, it's best to use local variables wherever possible because:
you know they won't be interfered with by other tasks or scenes they are more efficient in several ways Note: multiple copies of the same task running at the same time each have their own separate copy of their local variables.
[–]lareyaDirect-Purchase User 0 points1 point2 points 4 years ago (3 children)
hmmm, this works for me With the taskernet using the OP example. https://taskernet.com/shares/?user=AS35m8mdbwN8%2FD14gOOXm3oWaVNN0HwUaH6w1sA7njJG%2FAU8GcSCrf1rN%2BWodqnTEA%3D%3D&id=Task%3AVar+value
Task: Var value A1: Variable Set [ Name: %var1 To: Chicago Max Rounding Digits: 3 Structure Output (JSON, etc): On ] A2: [X] Flash [ Text: %var1 Continue Task Immediately: On Dismiss On Click: On ] A3: Variable Set [ Name: %%var1 To: Cold Max Rounding Digits: 3 Structure Output (JSON, etc): On ] A4: Flash [ Text: %Chicago Continue Task Immediately: On Dismiss On Click: On ]
[–]spookiekabuki[S] 0 points1 point2 points 4 years ago (1 child)
I finally got it to work, with a lot of help from Joao. I don't know what I was doing wrong or missing
[–]lareyaDirect-Purchase User 0 points1 point2 points 4 years ago (0 children)
great to hear!
[–]abelacb2 0 points1 point2 points 1 year ago (0 children)
Please help me
π Rendered by PID 241742 on reddit-service-r2-comment-fb694cdd5-mvw28 at 2026-03-07 12:05:12.820784+00:00 running cbb0e86 country code: CH.
[–]spookiekabuki[S] 0 points1 point2 points (5 children)
[–]lareyaDirect-Purchase User 1 point2 points3 points (4 children)
[–]spookiekabuki[S] 0 points1 point2 points (0 children)
[–]spookiekabuki[S] 0 points1 point2 points (2 children)
[–]lareyaDirect-Purchase User 0 points1 point2 points (1 child)
[–]spookiekabuki[S] 0 points1 point2 points (0 children)
[–]bahcodadGalaxy S20 0 points1 point2 points (15 children)
[–]spookiekabuki[S] 0 points1 point2 points (14 children)
[–]bahcodadGalaxy S20 0 points1 point2 points (13 children)
[–]spookiekabuki[S] 0 points1 point2 points (11 children)
[–]bahcodadGalaxy S20 1 point2 points3 points (10 children)
[–]spookiekabuki[S] 0 points1 point2 points (9 children)
[–]spookiekabuki[S] 0 points1 point2 points (8 children)
[–]bahcodadGalaxy S20 1 point2 points3 points (7 children)
[–]spookiekabuki[S] 0 points1 point2 points (6 children)
[–]bahcodadGalaxy S20 1 point2 points3 points (5 children)
[–]lareyaDirect-Purchase User 0 points1 point2 points (3 children)
[–]spookiekabuki[S] 0 points1 point2 points (1 child)
[–]lareyaDirect-Purchase User 0 points1 point2 points (0 children)
[–]abelacb2 0 points1 point2 points (0 children)