Information générale
Catégorie:
COM/DCOM et OLE Automation
>>Hi everyone
>>
>>I have a reference to an IE object.
>>
>>The IE object creates a `save as` dialog box.
>>
>>I would like to set the filename and click OK automatically.
>>
>>I have done this with the Windows Scripting Host and the sendkeys method ( see bottom), but its horrible and worse still unreliable.
>>
>>Is there anyway for me to get a reference to this dialog box and do this properly using the methods and properties of the dialog box?
>>
>
>Why not simply get a reference to the running instance of IE (You can use the Windows collection of Shell.Application to get the list of running IE instances) and then simply suck up the inner or outer HTML as appropriate and save it yourself, avoiding the menu entirely?
I have got the reference to the IE object... I created the instance.
The save as dialog box is a result of clicking on a link object in the browser document. I am trying to automate the download of files from a website. I've managed to bypass the file download dialog... but the save as is proving difficult.
Any ideas?
Mace
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement