A macro won't move past a Show Status Menu action to the next action without user input due to some limitation that is above my pay grade.
Have a look here for a solution that might work for you if you want to stick with that action as the way of retrieving your active groups: