-
Auto Myspace Login
ok, I havent used VB sence prolly 2002...little rusty. I need to know how to make a auto logon for myspace. I have a webbrowser set up in my vb program already and it navigates to MySpace, I just need the user to people able to store there info and have it auto login, Any help would be nice. using the Visual Studio 2008 VB
Thank you,
DaDealer
-
Re: Auto Myspace Login
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim htmlDoc As HtmlDocument = wb1.Document 'Gets current Document loaded by WebBrowser Control
htmlDoc.All("ctl00$cpMain$LoginBox$Email_Textbox").InnerText = "SomeUserName" 'places text in UserName textbox
htmlDoc.All("ctl00$cpMain$LoginBox$Password_Textbox").InnerText = "SomePassword" 'places text in password textbox
htmlDoc.GetElementById("dlb").InvokeMember("click") 'invokes the login button click event
End Sub
Redmo