Hallo


Ich like to navigate to a page with Inet-Control and fill every field I can.
Now I find out, that i can fill all text-field, but not the file-fields!

Here my Code:

DIM ie AS Object
SET ie = CREATEOBJECT ("InternetExplorer.Application")

ie.visible = - 1
ie.navigate("C:\input.html")
'Das sind alles Textfelder
ie.Document.All.user.Value = Benutzername$
ie.Document.All.pwd.Value = Passwort$
ie.Document.All.languageid.Value = Sprachcode$
'Das ist ein File-Feld
ie.Document.All.xmlfile.value = FileName$


The text-fields are filled okay, but the file-field are empty. I've read
something that the browser do not support auto-filling of file-fields! Is
there a way to do this anyway? Thanks for every help!!

Nijazi Halimaji

RE: HTML type "File" by tlavedas

tlavedas
Thu Dec 02 10:41:03 CST 2004

In such a use in a local application, there is the workaround of using the
Wscript.Shell object's AppActivate and Sendkeys methods to fill an INPUT
control of type 'file'. For an example, see my 'ChooseFile' demonstration
code at http://www.pressroom.com/~tglbatch/ChooseFile.vbs.txt

The applicable part is the part that sets the StartIn contents.

Tom Lavedas
===========

"Don Hali" wrote:

> Hallo
>
>
> Ich like to navigate to a page with Inet-Control and fill every field I can.
> Now I find out, that i can fill all text-field, but not the file-fields!
>
> Here my Code:
>
> DIM ie AS Object
> SET ie = CREATEOBJECT ("InternetExplorer.Application")
>
> ie.visible = - 1
> ie.navigate("C:\input.html")
> 'Das sind alles Textfelder
> ie.Document.All.user.Value = Benutzername$
> ie.Document.All.pwd.Value = Passwort$
> ie.Document.All.languageid.Value = Sprachcode$
> 'Das ist ein File-Feld
> ie.Document.All.xmlfile.value = FileName$
>
>
> The text-fields are filled okay, but the file-field are empty. I've read
> something that the browser do not support auto-filling of file-fields! Is
> there a way to do this anyway? Thanks for every help!!
>
> Nijazi Halimaji
>
>
>
>