Find and Replace feature for macros

Zzzleepy

New member
Good day.

I would like to suggest a feature with Find and Replace within the macro.

I have multiple macros for games. The problem is I have multiple 'Wait' actions in between other actions. I have to copy the desired 'Wait' duration, then replace the undesired 'Wait' duration (delete then paste). So I think this will be a great addition.

The Find feature includes that of:
- Highlighting the item searched
- Expanding collapsed actions then highlight item

The Replace feature includes that of:
- Replacing the searched item to the item entered (including actions, constraints, variables, values of variables and comments, and excluding triggers because it's already at the top)

Adding 'Exact Match' and 'wildcards' would be great too.

Please see attached screenshots for a sample (highlighting not included due to limited ability using MS Paint).

I also forgot about boxing the before and after changes from Pictures 3 and 4. For anyone who did not notice, the '50' from '500 ms' changed to '25'.

I know this will be difficult, but I'm willing to wait. As I am NOT a programmer/developer, this is a suggestion purely from a fan of your app. :)
 

Attachments

  • 1.png
    1.png
    111 KB · Views: 13
  • 2.png
    2.png
    20.6 KB · Views: 11
  • 3.png
    3.png
    91.6 KB · Views: 10
  • 4.png
    4.png
    89.5 KB · Views: 12
Last edited:

Elenkhos

Member
This is something I have missed a lot when configuring large macros, but I don't know how easy this would be to implement as the developer is using his free time for MacroDroid development. But nevertheless, a good find & replace function is a lifesaver in programming.
 

Zzzleepy

New member
Just as when I am waiting for this feature, I found a temporary solution. Though I can only do it with 'Wait' actions for now.
For Android (as I only have Android)
- Export macros to wherever folder you want it to be
- Name it WhateverName.mdr (recommended to have a backup)
- Launch File Manager (that supports .txt files - I am using MiXplorer)
- Open WhateverName.mdr with .txt file opener
- Find and replace anything you want
- Save it
- Then use Import Macros in MacroDroid (if anything goes wrong, just import the original WhateverName.mdr file)

For PC
- I have not tried this yet, but maybe will try soon
 

FrameXX

Well-known member
Just as when I am waiting for this feature, I found a temporary solution. Though I can only do it with 'Wait' actions for now.
For Android (as I only have Android)
- Export macros to wherever folder you want it to be
- Name it WhateverName.mdr (recommended to have a backup)
- Launch File Manager (that supports .txt files - I am using MiXplorer)
- Open WhateverName.mdr with .txt file opener
- Find and replace anything you want
- Save it
- Then use Import Macros in MacroDroid (if anything goes wrong, just import the original WhateverName.mdr file)

For PC
- I have not tried this yet, but maybe will try soon

He is using MiXplorer. Of course. MiXplorer gang rise up! ✌️
 

Zzzleepy

New member
Why don't you set them to a variable value and then just change the value of the variable
Nice suggestion. Have not thought of that. I am learning something new. Maybe I'll browse through here if I have the time to educate myself. Thanks!
 
Top