I want to send a file to a website without opening any window, I got using:
the html of web siteCode:For Each OneElement In CaptchaBrowser.Document.GetElementsByTagName("input") If OneElement.GetAttribute("type") = "file" Then If OneElement.GetAttribute("name") = "file" Then Dim tr As New System.Threading.Thread(AddressOf SendK) tr.Start() OneElement.InvokeMember("click") tr.Abort() End If Exit For End If Next Private Sub SendK() Threading.Thread.Sleep(2000) SendKeys.SendWait("mame") 'name of file, enter text letter by letter SendKeys.SendWait(Chr(13)) ' click the submit button End Sub
I got this way, more so opens a window to select the file location has somehow I just set the file path without opening anything? need help , tranksHTML Code:<input name="file" size="20" type="file">![]()


Reply With Quote
