I am trying to control Adobe Acrobat from Delphi to automate a lengthy process. I am sending keystrokes to Acrobat to control it. Everything works fine until there is an error.
I have been using FindWindowEX to find out when a progress dialog window closes, thus signifying that it has finished its process, but if there is an error the progress dialog does not come up - just an error messagebox. Both the progress dialog and the error messagebox have the same window title text.
Is there any way to tell whether Acrobat has thrown an error, or is just processing the files?
If there is an error the error messagebox eventually closes because of a #13 keystroke sent to Acrobat in its normal stream of keystrokes, but the rest of the processing on the file does not take place, and Acrobat eventually runs out of resources because the individual files which produce errors are not closing when they should.