Controling an External Dialog Box

C

Chad Nauojks

I have a dialog box that comes up during an automation process (automating
an external application). I need to be able to automate the interaction on
this dialog box.

The dialog box is a save as dialog that comes up when a file is chosen to be
downloaded from a site. I can't do a direct down load because the file is
created on the fly from the DB and is not at a physical location so the only
way is to go throught the dialog boxes that come up as far as I can tell.

I need my program to be able to click the ok button and insert a new file
name and then click ok again on the second dialog box that comes up during
the down load process.

Please let me know if anyone has any clues about how to get this done in
VB.NET.

Thank you,

Chad Naujoks
 
H

Herfried K. Wagner [MVP]

* "Chad Nauojks said:
I have a dialog box that comes up during an automation process (automating
an external application). I need to be able to automate the interaction on
this dialog box.

The dialog box is a save as dialog that comes up when a file is chosen to be
downloaded from a site. I can't do a direct down load because the file is
created on the fly from the DB and is not at a physical location so the only
way is to go throught the dialog boxes that come up as far as I can tell.

I need my program to be able to click the ok button and insert a new file
name and then click ok again on the second dialog box that comes up during
the down load process.

You will have to use p/invoke to do that. Keywords: 'FindWindow',
'FingWindowEx', 'SendMessage', 'keybd_event', ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top