How can I wait for Take High Res Screenshot finished

Hi, I want to wait for the ‘Take High Res Screenshot’ process to finish, but I’m not sure how to do it

This is what I’ve tried, loop until the image appears in the ‘Saved’ folder
But it’s not working properly; it seems to loop infinitely

Is there any other solution?