Check to typing between the quotes. Is it the same as what appears on the titlebar of the window? What is the modality of the window? Can you Alt-Tab to it? If you can't, then you probably can't use setfocus () to test for it's presence. You may need to rely on a long enough sleep time to ensure the dialog is there and sendkeys() to the parent window.

If all else fails, you may have to enlist the users to do the right thing. Use messagebox() to put up instructions and hope they can read and follow them.

Maybe if someone else is following this post they may have a better idea.

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.