Missing Variables and Stopwatches

GrandadJeff

New member
I have just installed Macrodroid 5.12.3 Pro on my new Nokia 1 phone with Android 10.
I then imported a Macrodroid auto-backup file from my old phone (which had Android 8.1).

The macros imported correctly, but there are no global variables or stopwatches, so the macros will not run.
All macros which use global variables or stopwatches are highlighted in purple, indicating an invalid macro.

Where did my variables go?

Jeff
 

Pseudocyclic

Well-known member
As a workaround to quickly re-create the global variables, try opening each macro in turn, and then saving it without making any changes (unfortunately this won't 'restore' the variable values).
 

GrandadJeff

New member
If a macro is not edited, there is no option to save it.

I changed a comment in one existing imported macro that used a global variable, and then saved it, but the variable was not recreated, and the assignment statement for the variable was still highlighted in purple as being invalid.
When I tap the purple assignment statement and select Configure, I get a popup saying "No variables configured".

I also tried cloning the macro, but the global variable was still not recreated.
Statements using local variables are not highlighted in purple.

If I Configure an existing assignment statement for a global variable, and create a new variable with the same name, the modified statement is accepted, and the purple highlight disappears. Note that the statement is now exactly as it was before, but the variable has been recreated.
All statements in other macros which use the same global variable are no longer purple. The same procedure works with stopwatches.

This is a workaround, but obviously we need to understand and correct the problem of disappearing variables when existing macros are imported.

Jeff
 

andersn45

New member
Would you be kind enough to share your file backup macro? I would love something like that. I have the Mix filemanager. I would like to backup files (on a set schedule) from my main memory to the SD card on the same phone.
 
Last edited:

Dm114

Well-known member
If a macro is not edited, there is no option to save it.

I changed a comment in one existing imported macro that used a global variable, and then saved it, but the variable was not recreated, and the assignment statement for the variable was still highlighted in purple as being invalid.
When I tap the purple assignment statement and select Configure, I get a popup saying "No variables configured".

I also tried cloning the macro, but the global variable was still not recreated.
Statements using local variables are not highlighted in purple.

If I Configure an existing assignment statement for a global variable, and create a new variable with the same name, the modified statement is accepted, and the purple highlight disappears. Note that the statement is now exactly as it was before, but the variable has been recreated.
All statements in other macros which use the same global variable are no longer purple. The same procedure works with stopwatches.

This is a workaround, but obviously we need to understand and correct the problem of disappearing variables when existing macros are imported.

Jeff
You also could have used the 'Variables' square button in the MD home menu. If you know the name of the variables, it's much faster than updating macros.
 

GrandadJeff

New member
True, but variables should be automatically recreated when macros are imported. It should not be necessary to manually recreate every global variable.
 
Top