visual basic Button click

01/07/2016 23:35 russenalex#1
hallo elitepvper ich bin dabei grade ein kleines tool zu scripten das mir erleichtert anzeigen hochzuladen ich komme bis zum bilder upload button diesen kriege ich nicht betätigt durch visual basic

<button id="pictureupload-pickfiles" class="pictureupload-pickfiles button" type="button" style="position: relative; z-index: 1;">
<i class="button-icon icon-camera-white"></i>
<span>Bilder hinzufügen</span>
</button>

das der code auf der homepage

das klappt nicht
WebBrowser1.Document.GetElementById("pstad-pictureupload").InvokeMember("click")

hättet ihr eine idee ?
01/07/2016 23:40 ►INGE◄#2
Hey,


Dim KLICK_B As HtmlElement
For Each KLICK_B In WebBrowser1.Document.All
If (KLICK_B.GetAttribute("classname") = "pictureupload-pickfiles button") Then
KLICK_B .InvokeMember("click")
Exit For
End If
Next


Das sollte gehn, wenn nicht pn me
01/07/2016 23:46 russenalex#3
leider nicht

Dim OFD As New OpenFileDialog()
03
With OFD
04
.Filter = "All Files |*.*"
05
.FileName = ""
06
End With
07
If (OFD.ShowDialog() = Windows.Forms.DialogResult.OK) Then
08
WebBrowser1.DocumentText = _
09
System.IO.File.ReadAllText(OFD.FileName)
10

11
End If


hatte das auch versuch
aber dann öffnet er es ja nur



Quote:
Originally Posted by ►INGE◄ View Post
Hey,


Dim KLICK_B As HtmlElement
For Each KLICK_B In WebBrowser1.Document.All
If (KLICK_B.GetAttribute("classname") = "pictureupload-pickfiles button") Then
KLICK_B .InvokeMember("click")
Exit For
End If
Next


Das sollte gehn, wenn nicht pn me
01/12/2016 21:36 anonymous-29742#4
Code:
WebBrowser1.Ducument.GetElementById("NAME").InvokeMember("click")
MFG #Lucas#
01/13/2016 13:53 DeinMud#5
WebBrowser1.Document.GetElementById("pictureupload-pickfiles").InvokeMember("click")

"GetElementById()"
"[...] id="pictureupload-pickfiles" [...]"

die funktion heißt nicht umsonst so