>If it works for you sometimes, then I think, that you and I, we exist in parallel but different universes. In "my" world I need to send keys to particular specified window (which in this case is the user dialog). However in the solution that you mentioned, the window is neither specified nor activated. Where does it send keys to ?
It is specified and activated. I just tried it again. The first time the dialog shows up with the long file name "Autofox..." and I cancel this dialog myself. The second time I ran this code it worked and created a file. That's why I said it is not 100% reliable.
I'm using VFP8 and IE7.
If it's not broken, fix it until it is.
My Blog