I've written a script that reads a list of files from a text file and in turn, prints each file listed in the text file. This is up to 75 pdf files for one batch file.
The script hangs once in awhile on a timing issue. Since I am using the InvokeVerbEX("Print') on the folder item (the file), the print dialog box opens. I use Sendkeys to send and Enter and, then the "Save PDF File As" box opens. I use Sendkeys to send the corrected pdf filename to the dialog box. Sometimes, the timing is wrong on these two commands and the second one is sent too early (yes, I have a wait statement).
Is there a way to check for an open dialog box like you can with an application? I want to guarantee that the keystrokes are not sent until the "Save PDF File As" box is open.
Thanks for any help!
The script hangs once in awhile on a timing issue. Since I am using the InvokeVerbEX("Print') on the folder item (the file), the print dialog box opens. I use Sendkeys to send and Enter and, then the "Save PDF File As" box opens. I use Sendkeys to send the corrected pdf filename to the dialog box. Sometimes, the timing is wrong on these two commands and the second one is sent too early (yes, I have a wait statement).
Is there a way to check for an open dialog box like you can with an application? I want to guarantee that the keystrokes are not sent until the "Save PDF File As" box is open.
Thanks for any help!