Suppose there is a wait action or loop in the macro actions, this means that the macro is running and has not finished yet.
(Of course, here we can solve this without this constraint by placing a logical variable at the beginning and end of the macro, but I am talking about the operation of this restriction. Is it really working or is there something wrong with it?)