Unfortunately, it is very difficult to say what the issue might be without further information.
Can you share the two macros you have set up?
You can do this by either by exporting the two macros or by exporting your settings to a file.
It might also be of use if you can provide a log file with verbose logging enabled and corresponding timestamp of when the issue happened in the log.
This is what I setup..Maybe because the broadcasting scene is on the background,when the repaly scene remains in the preview window,so the macro cannot judge correctly?But how to get the broadcasting scene into the preview window automatically?