--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
LOL... I actually understood joaomgcd's post (sorry I have no clue as to the answer ) but was curious as to exactly what you are trying to achieve? :)
> In my case I'm trying to convert a date abbreviated FEB to 02 but just can't seem to call the variable changing it to 02 even though that variable IS NAMED FEB. Both are variables.
Rich....
Tom
set %thismonthnum=2
alert: " %thismonthnum -> %Month(%thismonthnum) "
... or the reverse ...
set %thismonthname="feb"
alert: " %thismonthname -> %Month(#?%thismonthname) "
%MyVarValue(1)="uno"
%MyVarValue(2)="dos"
perform task: indirection(%par1,%par2)
set %index=%MyVarName(#?%par1)
set %MyVarValue(%index)=%par2
usage example:
set %this="two"
notify: "changing value of var %this from %MyVarValue(#?%this), this was dos ... "
perform task: indirection(%this,"deux"), priority:10
notify: " ... to %MyVarValue(#?%this), this should be deux now."
Tom
What do you mean "from the next version". Can you reword what you wrote?
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/kL7LR7-OJbE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
What do you mean "from the next version". Can you reword what you wrote?
OK. Another way to do it is with JavaScriptlet. setGlobal("%" + %TEST, "test"). Or something like that.
--
But, how to make the content of a variable with prefix "%" not to become a variable reference? I couldn't see any related description in UserGuide.
See 'Escaping Variable Names' in the Variables section of the userguide.
Pent
And I found the real problem is %%search% will not be the value of %search with "%" prefix and suffix when the value of %search only contains non-English chars. Here I will show you how and you can reproduce it.1.Variable Set: %search=car;2.Flash %%search%It will flash %car%. All right.1.Variable Set: %search=car汽车;2.Flash %%search%It will flash %car汽车%. No problem.1.Variable Set: %search=汽车car;2.Flash %%search%It will flash %汽车car%. No problem.1.Variable Set: %search=汽车;2.Flash %%search%It will flash %%search%. Not the Chinese words——"汽车"!So I think maybe it's a bug or limitation for Tasker.
1.Variable Set: %search=汽车;2.Flash %%search%It will flash %%search%. Not the Chinese words——"汽车"!
In the last case, it's not a valid variable name, because variable names
have to have minimally 3 characters (yours only had 2)
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/kL7LR7-OJbE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
The following example wont work:Set %Menuc - MediaplayerSet %%Menuc - test
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
--
I can confirm this. Global %% variables do not show up in the Vars list unless explicitly referenced elsewhere (eg 'flashing' them).
I found what is causing the problem. The example works but the variable wont be set in the variables list.
But what is worse : Actions like Array Pop do NOT work on them :-(
I doubt it - because I'm running the latest beta ...
May I add 'Variable Join' to the list of actions that do not work with redirected variables ?
Next update/beta ;-) ?
I'm afraid I'm gearing up to pester you with bug reports, suggestions, requests, ...
Will these live forever? Is this leaking memory? How do I free/release them after one or more profile/tasks process them?
A1: Variable Set [ Name:%array_name To:search_me Do Maths:Off Append:Off ]
A2: Variable Set [ Name:%%array_name(1) To:one Do Maths:Off Append:Off ]A1: Variable Set [ Name:%array_name To:search_me Do Maths:Off Append:Off ]
A2: Array Push [ Name:%%array_name Position:1 Value:one Fill Spaces:Off ]
A3: Variable Search Replace [ Variable:%%array_name(1) Search:one Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In: Replace Matches:On Replace With:two ]
The 'Variable Set' problem can easily be avoided by using 'Array Push' which works fine with redirected variables as array name (there are some other actions which support it too, even %%array_name(#) will work), but it's a bit more complex for 'Variable Search Replace'.
I realize that this kind of use looks a bit weird, but it can be useful to create tasks acting on different arrays.
Keep up the good work, Tasker is an amazing tool for Android.
Best regards,
Laurent
Hi Guys,
I finishing
here looking for a method to name a variable with other variable name…
This way was how I solved:
I needed these variables to compound the final variable name:
%light = 2
%info = on
…and the final var would be: %Light2_on.
It is impossible to reach at once with something like: %Light%light_%info.
But doing few steps before its works!
Set var: %varname = Light%light_%info returns: Light2_on
Set var: %%varname = (anything) ---> actually creates the variable: %Light2_on
Sorry to bother, but if I set PosX variable for 100, which is position of object in the Content of some button I created manually, and I set PosX before his creation, then inside the content instead of 100 I can write just ,PosX,100 right?
I mean, if button is set to 100,100 in content and I replace it with PosX,PosY then it will not work, why?
Should I add %PosX,%PosY since its nested?
I wanted to create in a loop 5 buttons using predefined before x and y positions.
Can You advise me, because no one knows how or all know and I misunderstood Java. I use 4.8u4