Posted: Wed Sep 30, 2009 12:25 am Post subject: VB Myspace Login?
Im using vb2008.
Code:
Dim base As String = "http://myspace.com/"
Dim User As String = TextBox1.Text
Dim Pass As String = TextBox2.Text
Dim WB1 As New WebBrowser
WB1.Height = 100
WB1.Width = 100
WB1.Location = New Point((GroupBox1.Location.X + GroupBox1.Width + 10), (GroupBox1.Location.Y))
Me.Controls.Add(WB1)
WB1.Navigate(base)
If Not WB1.IsBusy Then
WB1.Document.All("ctl00_ctl00_cpMain_cpMain_LoginBox_Email_Textbox").InnerText = User
WB1.Document.All("ctl00_ctl00_cpMain_cpMain_LoginBox_Password_Textbox").SetAttribute("value", Pass)
End If
End Sub
End Class
How do you enter it into the text box if neither of those ways work...? _________________
I am trying to learn to use html elements, but thanks
I figured it out.
Just made a button that enabled the timer then
Code:
Private Sub MyspaceLogin_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyspaceLogin.Tick
Dim User As String = TextBox1.Text
Dim Pass As String = TextBox2.Text
If WB1.ReadyState = WebBrowserReadyState.Complete Then
WB1.Document.GetElementById("ctl00_ctl00_cpMain_cpMain_LoginBox_Email_Textbox").InnerText = User
WB1.Document.GetElementById("ctl00_ctl00_cpMain_cpMain_LoginBox_Password_Textbox").InnerText = Pass
WB1.Document.GetElementById("dlb").RaiseEvent("onclick")
MyspaceLogin.Enabled = False
End If
End Sub
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum