I think you would need a way to know when DlgPrompt is presented and I don't see any way to test that in the macro language.
An UGLY but functional solution is to just call DlgPrompt.Answer(mbYes) 'enough' times to cover the worst case. I added several more Answer()'s than necessary to an existing macro and it didn't seem to cause any problems.
Another option might be the COM interface. I know you can connect to a pads session from python and get it to do all kinds of useful stuff but I don't know just how much is exposed.
1 of 1 people found this helpful
This is what I did. Call DlgPrompt.Answer(mbYes) 5 times and DlgPrompt.Answer(mbOK) 5x times and my script work fine. Thanks.