Use webbrowser recently met a & lt; Input type="file" & gt; This is uploaded files to the format of the common
I have seen a lot of people want to use the program directly to the file path is assigned to the file value
But no method is very good, so I would like to adopt the method of simulated keyboard sendkey to specify file
But I have a question, my program in open the upload window to select file page
My VB source program more rights is the card in the select file page
Even if I added in the program what sendkey "C: \ temp. TXT"
Attempt in its dialog pages for a path to the specified action can't
Anyone know how to do?
I'm in the webbrowser after open the card here
For j=0 To vDoc. All. The length - 1
If UCase (vDoc. All (j) tagName)="INPUT" Then
The Set vTag=vDoc. All (j)
If vTag. Type="file" And vTag. Name="uploadfile" Then
VTag. Click '& lt; - here open jump out of the window after I code is useless after
SendKeys "C: \ temp. TXT '& lt; - want to use simulation to action say... Stuck...
EndIF