Is it possible to create a macro using multiple actions. Where the only way to move to the next action is by player input?

For example

/macroicon " "
/ac " "
/<<< player input command
/ac " "

Just curious because it would be great to have the ability to make macros this way.