How am I supposed to make assigned variables in copied actions from Macro A works right off the bat in Macro B?

sampleuserhere

Active member
Is there some sort of way to do this?

I've been re-assigning them manually everytime I copy some actions into another macro. I originally thought that they are just not registered in local variables tab, however even using syntax doesn't seem to return the value either.
 

Endercraft

Moderator (& bug finder :D)
The set variable can recreate its variable as it has its data, but for other actions it may not work.
 

Snurre

Well-known member
Is there some sort of way to do this?

I've been re-assigning them manually everytime I copy some actions into another macro. I originally thought that they are just not registered in local variables tab, however even using syntax doesn't seem to return the value either.
You could use global var instead
 

dhj49er

Well-known member
Is there some sort of way to do this?

I've been re-assigning them manually everytime I copy some actions into another macro. I originally thought that they are just not registered in local variables tab, however even using syntax doesn't seem to return the value either.
Clone the macro A & use the cloned macro for macro B. All the local variables in Macro A will be in Macro B

Alternatively use Global variables in Macro A.
 

Snurre

Well-known member
I'm getting a little confused about several "solutions" in this forum, I have noticed it's being more and more "difficult" to do simple things 🤔
Or is it just me
As I read OP's problem, he don't want to copy a macro, just an action, so @dhj49er solution isnt what he wants, and the suggestion of using global var is exactly what I suggested
 

dhj49er

Well-known member
I suspect the OP may have created variables without realising the default setting is local.

I did this when the local variable was introduced.

However, the majority of variable I create are Global.

Being able to set the default type to either local or global would be useful.

Unfortunately you cannot convert a local variable to a global variable.

So the simple answer to the OPs question is it can't be done -copying assigned (ie local) variables from Macro A to work right off the bat in Macro B is not possible.
 

Endercraft

Moderator (& bug finder :D)
Having a lot of global variables isn't necessary a good thing - MacroDroid would lag because it was reading so much text.
Workarounds are good, but as it says it's just working around what we can't do - which can get annoying.
No, instead this should be in the feature request forum. Sometimes requests don't get added (even after years of asking..) but if it's really useful then it will be added.
 

dhj49er

Well-known member
Having a lot of global variables isn't necessary a good thing - MacroDroid would lag because it was reading so much text.
Workarounds are good, but as it says it's just working around what we can't do - which can get annoying.
No, instead this should be in the feature request forum. Sometimes requests don't get added (even after years of asking..) but if it's really useful then it will be added.
I'm not sure what a lot of global variables is

I have 100 global variables and have 184 macros and do not experience any lag.

I periodically check the variables list to convert identified variables to local.

So the variables list is the smallest it can be for my set of macros.
 

sampleuserhere

Active member

Alternatively use Global variables in Macro A

It's not like I get to know which ones my future self will want to copy later today, right? 😂 What I'd want to copy later may not always use them.

@Endercraft already answered what I'd like to know, what I had asked is not technically possible. It's certainly not what I hope for, however now I'm now aware of the situation. That's fair enough.

Regardless of anything, I still truly appreciate the responses. Thankyou!
 
Top