
July 21st, 2012, 04:44 AM
|
|
Registered User
|
|
Join Date: Jul 2012
Posts: 2
Time spent in forums: 1 h 4 m 48 sec
Reputation Power: 0
|
|
Ok sorry, now it's better.
I have a solution (i've changed my code a little bit)
Now now looks like this:
Code:
OpenFileDialog1.ShowDialog()
streamer = IO.File.OpenText(OpenFileDialog1.FileName)
Dim delimiters() As Char = New Char() {vbCr, vbLf}
Dim mystring() As String = streamer.ReadToEnd.Split(delimiters, StringSplitOptions.RemoveEmptyEntries)
ListBox1.Items.AddRange(mystring)
I have this:
Code:
ListBox1.SelectedIndex = 0
Dim login As String = ListBox1.SelectedItem.ToString.Split(":")(0)
Dim hasło As String = ListBox1.SelectedItem.ToString.Split(":")(1)
WebBrowser1.Document.GetElementById("log").SetAttribute("value", login)
WebBrowser1.Document.GetElementById("pwd").SetAttribute("value", hasło)
WebBrowser1.Document.GetElementById("wp-submit").InvokeMember("click")
Now nicely put in field of the login and password information that is in the first listbox (They are separated by ":" ex login:password)
Only now I do not know how to do loops to repeat this action , until it logged in or address will change. :/
|