<p>when the button - enhance photo - is clicked, some times another small window pop ups and shows a progress bar of enhancing the photo.</p>
<p>then only the save button is enabled.<br>
but our script does not wait for the pop up window to close.<br>
it goes on clicking the save button when it is still in progress.</p>
<p>it goes on opening next file.<br>
then the confusion starts of which window to work.</p>
<p>how to tell the script for waiting till the pop up window is closed?</p>