I have been trying to make a program that automatticly login to my schools website and this si the code I tried so far
Schools website - "http://gronlokke-skolen.dk/pi/Loginside.asp"
Schools website - "http://gronlokke-skolen.dk/pi/Loginside.asp"
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate("http://gronlokke-skolen.dk/pi/")
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Document.GetElementById("Brugernavn").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("Adgangskode").SetAttribute("value", TextBox2.Text)
End Sub
End Class
My profession, you can call me a pothead, 'nuff said