merge action blocks into macros

dsnz

Well-known member
since action blocks are new and rough and some issues have been raised (local variables) plus some bugs are popping up (eg. https://www.macrodroidforum.com/index.php?threads/bug-action-blocks-with-notifications-dialogs.2057/)
I suggest that action blocks are not developed further independently, it will be much effort with little return compared to the following proposal

1. enhance macros to have input and output variables (ie. transplant into macros the current code that defines the input and output variables for action blocks)

2. make a new action to call a macro as a subroutine (ie. as an action block)
this will be different than the existing 'macro run' and will essentially replace the recently introduced 'action block' action

that's all !

of course when a macro is called as a subroutine any triggers and constraints are irrelevant
and when a macro is run as a real macro then any input and output variables are irrelevant

it's generally expected that the macros are developed as true macros or as subroutines
but still it's possible to code a macro to function dually for interesting effects :)

this proposal has less development effort (there will still exist a single entity to manage, no need for future categories or separate backups/exports or whatever for the separate entity of action blocks), less restrictions in what an action block(subroutine now) can do and is free of new introduced bugs
 
Last edited:

MacroDroidDev

Administrator
Staff member
I understand where you are coming from and believe me I did give a lot of thought to enhancing macros vs action blocks. There are a myriad of reasons why I chose the Action Block approach, some usability based and some perhaps more to do with limitations of the app architecture/code base and the way things work (The code base is 10 years old and as always there are things I would have done differently now...) etc.

I don't personally think there are major issues with action blocks and I will hopefully make some small improvements over time and I have no plans to remove them/change them drastically.
 

dsnz

Well-known member
well if it's easier to have action blocks too in the long term rather than only macros, it's okay for me too 😊
 
Top