Results 1 to 4 of 4

Thread: Connnecting & log in

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2013
    Posts
    13

    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

  2. #2
    Lively Member
    Join Date
    Dec 2010
    Location
    http://bbat.forumeiro.com/
    Posts
    86

    Thumbs up Re: Connnecting & log in


    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2013
    Posts
    13

    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?

  4. #4
    Lively Member
    Join Date
    Dec 2010
    Location
    http://bbat.forumeiro.com/
    Posts
    86

    Question Re: Connnecting & log in

    Hi
    and this code still don't work for you
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width