HTMLInputFileElement - Need to fill in input of type file using automated process

  • Thread starter Thread starter mparisi
  • Start date Start date
M

mparisi

I hope that there is someone who can help me. I have written a
process to entirely automate a sequence of web pages. It works great
and I spent a ton of time on it since I am a novice C# programmer.

I'm at the final step in the submission process and it requires a file
upload using an input of type FILE. I know that that particular field
is read-only. There must be a way however to get the name of the file
to the upload process. I really need to be able to do this. I'm
trying to prove my ambition as a programmer so I can better my job
position.

I use MS Visual C# .NET 2003.

HELP!!!!!

Thanks in advance.

Matt
 
Hi!
this was problem because of the security problem of that but there is
solution:
SetForegroundWindow(ie_window);
(IHTMLElement2)out_file_input->focus();
....in cycle make keybd_send(our keys); to send keys to explorer window....
SetForegroundWindow(old_window);

guy
 
Guy,

I'm a beginner in C# so I'm not sure I can decipher this. I think I
know what the code does, but I'm not sure how to insert into my
program. What parts of your code do I replace, where do I put it,
etc. etc. Thanks for the reply.

Matt
 
Back
Top