Block of Actions

wenesga

New member
I don't understand how this "Block of Actions" works. I put some variables in it, hence all my macros stopped working.
 

FrameXX

Well-known member
MacroDroid official introduction video:

What MacroDroid says about action blocks
An action block is a simple way to group multiple actions into a single re-usable block. The action block can then be added to your macros as a single item.

What I say about action blocks
Action blocks are an easy way to reuse a longer specific set of actions in multiple macros instead of typing them in every macro. If you are a user that makes only simple macros you may propably not find this need, but if you make a complex macros with bunch of repeating processes you may want to bundle them into action blocks, instead of keeping your macros messy with dozens of actions.

For example I have an action block that unlocks my screen with UI interactions, because that's something I need to do in start of multiple macros that needs to have screen unlocked. This action block doesn't require any input or output parameters. I just run it from any macro and when its done, that macro continues with its job.

Or I have an action block that gets name of my location. That means I provide action block with input parameters (latitude and longitude), it does it's job with HTTP request and extracting information from text/xml output and then returns to macro with some output variables/parameters like adress, postcode, and other ibfo etc... Macro can now continue on with these informations in its work.

So action blocks are simply useful to for longer repeatable tasks that you use often in your macros. They are like functions in programming, like a smaller parts of your macros.
 
Top