Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
vbscript autologon not work for hotmail
Cassie Mod
7y
210
1
Reply
HI ive got the following question. I made a script. however it keeps crashing on my email adres. It keeps saying it is not a valid email adres. It olso passes the values over the text that is already there ( default text to fill in emailadres, username or skype username).. Olso i can't press the button to login. it totlly freezes. BTW my email credentials are good. If i refresh the page and login with my credentials it works fine.
Olso . how can i puss the logon button automaticly ? i olso think i maybe used the wrong code.
script:
WScript.Quit Main
Function Main
Set IE = WScript.CreateObject(
"InternetExplorer.Application"
,
"IE_"
)
IE.Visible = True
IE.Navigate
"https://www.hotmail.com"
Wait IE
With IE.Document
.getElementByID(
"i0116"
).value =
"
[email protected]
"
.getElementByID(
"i0118"
).value =
"mypassword"
.getElementByID(
"idSIButton9"
)(0).click
End With
End Function
Sub Wait(IE)
Do
WScript.Sleep 500
Loop While IE.ReadyState < 4 And IE.Busy
Do
WScript.Sleep 500
Loop While IE.ReadyState < 4 And IE.Busy
End Sub
Sub IE_OnQuit
On Error Resume Next
WScript.StdErr.WriteLine
"IE closed before script finished."
WScript.Quit
End Sub
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
How to resolve this error?
Please tell me how to use Configuration's save method