Cloned macro shortcut runs old macro

emwe

New member
basically title.

i made a macro with "shortcut launched" in triggers

then cloned the macro and made a new shortcut with the new name.
it now tries to run the original macro.

removing and adding "Shortcut launched" trigger, doesn't help.
only way i've been able to resolve it, is by deleting original macro
 

tanutanu

Well-known member
basically title.

i made a macro with "shortcut launched" in triggers

then cloned the macro and made a new shortcut with the new name.
it now tries to run the original macro.

removing and adding "Shortcut launched" trigger, doesn't help.
only way i've been able to resolve it, is by deleting original macro
It sometimes happened to me. Even the log records point new(cloned then renamed) but let me jump to old(original clone source) when tapped.
I always change the name just at the moment I cloned and saved it via top right '...' menu to avoid the issue, not just tapping back button and chose save on the dialog. Otherwise I start as a completely new macro, and then copy and paste entirety putting old into a dummy if code block once.
Individual export and import activity might help you as well.
 
Last edited:

emwe

New member
It sometimes happened to me. Even the log records point new(cloned then renamed) but let me jump to old(original clone source) when tapped.
I always change the name just at the moment I cloned and saved it via top right '...' menu to avoid the issue, not just tapping back button and chose save on the dialog. Otherwise I start as a completely new macro, and then copy and paste entirety putting old into a dummy if code block once.
Individual export and import activity might help you as well.
good call on copying IF to new macro - didn't even strike me 😶 "IF true=true" is my way of organizing 😅
but yea as u mention, in the log, at every task it says the original macro
 

MacroDroidDev

Administrator
Staff member
So I just tried the following:

Created Macro 1
T- Shortcut Launched
A- Speak Text "Macro 1"

Cloned Macro and named it Macro 2 and changed speak text to "Macro 2"

Created a shortcut to point to macro 2 and ran it. It correctly spoke "Macro 2" as hoped.

Is this equivalent to what you are doing, or do you have some variation in your steps?
 

tanutanu

Well-known member
So I just tried the following:

Created Macro 1
T- Shortcut Launched
A- Speak Text "Macro 1"

Cloned Macro and named it Macro 2 and changed speak text to "Macro 2"

Created a shortcut to point to macro 2 and ran it. It correctly spoke "Macro 2" as hoped.

Is this equivalent to what you are doing, or do you have some variation in your steps?
I tried to reproduce before but I couldn't figure out how to do exactly.
Now I tried it again, and found another issue like the following:

1. Create a macro named DupeTest and execute it,
2. back up the above macro as DupeTest.macro,
3. import it and name it as DupeTest 2,
4. execute the above DupeTest 2 but it shows as DupeTest in the log,
5. both DupeTest and DupeTest 2 are treated as DupeTest in the log.

I think the original unique serial is set to imported macro duplicatedly even though different name was applied.
I hope it could help you:)
 

Attachments

  • IMG_20211015_011959.jpg
    IMG_20211015_011959.jpg
    96.8 KB · Views: 5
  • IMG_20211015_011856.jpg
    IMG_20211015_011856.jpg
    148.1 KB · Views: 4

MacroDroidDev

Administrator
Staff member
Ahhh, I have been testing on my latest code base and I'm not seeing these issues happening. I do see the issues on the current release build so hopefully this should be fixed for the next update.
 
Top