-
Feb 16th, 2012, 09:47 PM
#1
Thread Starter
New Member
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<mpl=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()
-
Feb 20th, 2012, 11:09 AM
#2
Lively Member
Re: Internet Explorer Auto Login
Hi Try This Code
PHP Code:
Dim IE
Set IE = Wscript.CreateObject("InternetExplorer.Application")
IE.Visible = 1
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<mpl=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 11: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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|