-
Connnecting & log in
I am kinda new to VB, I as wanting to know how I can get my application so when I enter my login details it connects to a website say facebook for example and it checks the login details and logs into into the facebook.
How can I do this.
So on my application I enter the login details and it will connect to a website I choose and login.
Thanks
-
Re: Connnecting & log in
:wave:
Do you mean something like this :
Code:
Dim IE
Set IE = Wscript.CreateObject("InternetExplorer.Application")
IE.Visible = 1
IE.navigate "https://www.facebook.com/login.php"
Do While (IE.Busy)
WScript.Sleep 10
Loop
Set Helem = IE.document.getElementById("email")
Helem.Value = "change to your Login here"
Set Helem = IE.document.getElementById("pass")
Helem.Value = "Change to your Password here"
Set Helem = IE.document.Forms(0)
Helem.Submit
-
Re: Connnecting & log in
I'm not too sure I'll explain it a bit beter to you.
I am wanting to log into to www.ea.com/soccer then when my application users to enter their login / password into the text boxs and it will log into the website and then a java/flash player and then it asks for a security question so I would put another textbox saying enter security question and it will enter it on the website.
So I would want 3 text boxes:
Username:
Password:
Security Answer:
The website above when I click it, it only asks for login/pass then few seconds after it loads then asks for the security question.
How would I do that?
-
Re: Connnecting & log in
Hi :wave:
and this code still don't work for you :confused:
Code:
Dim IE
Set IE = Wscript.CreateObject("InternetExplorer.Application")
IE.Visible = 1
IE.navigate "http://www.ea.com/soccer/login"
Do While (IE.Busy)
WScript.Sleep 100
Loop
Set Helem = IE.document.getElementById("email")
Helem.Value = "youmail@gmail.com"
Set Helem = IE.document.getElementById("password")
Helem.Value = "YourPassword"
Set Helem = IE.document.getElementById("login_form")
Helem.Submit