Internet Explorer Auto Login-VBForums
Results 1 to 2 of 2

Thread: Internet Explorer Auto Login

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    1

    Internet Explorer Auto Login

    Hi, i've been trying to build a script to auto login to a website, it works with igoogle. but it doesn't work on the website i've been trying it on. Any help would be greatly appreciated!
    This is the error i get when not using the google website

    Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))


    Code:
            Dim ie
            ie = CreateObject("InternetExplorer.application")
            ie.Visible = True
            ie.navigate("https://accounts.google.com/ServiceLogin?service=ig&passive=true&continue=http://www.google.com/ig%3Fhl%3Den&followup=http://www.google.com/ig%3Fhl%3Den&cd=US&hl=en&nui=1&ltmpl=default")
            While ie.Busy
    
            End While
    
    
    
    
            ie.Document.forms(0).all("USER_ID").Value = "your name here"
            ie.Document.forms(0).all("Passwd").Value = "your password here"
            ie.Document.forms(0).submit()

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

    Thumbs up Re: Internet Explorer Auto Login

    Hi Try This Code
    PHP Code:
    Dim IE
    Set IE 
    Wscript.CreateObject("InternetExplorer.Application")
    IE.Visible 
    IE
    .navigate("https://accounts.google.com/ServiceLogin?service=ig&passive=true&continue=http://www.google.com/ig%3Fhl%3Den&followup=http://www.google.com/ig%3Fhl%3Den&cd=US&hl=en&nui=1&ltmpl=default")
    Do While (
    IE.Busy)
        
    WScript.Sleep 10
    Loop
    Set Helem 
    IE.document.getElementById("Email")
    Helem.Value "YourLogin" 'Change to your Gmail login 
    Set Helem = IE.document.getElementById("Passwd")
    Helem.Value = "YourPassword" '
    Change to your Gmail password
    Set Helem 
    IE.document.Forms(0)
    Helem.Submit 
    but it doesn't work on the website i've been trying it on
    Of course it will not work at all because you must edit the source code of your target page and look for ID to remplace it in your script like in Gmail
    so can you post the URL of your Target Page ?
    Last edited by Hackoo; Feb 20th, 2012 at 10:39 AM.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.