Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
vbscript autologon not work for hotmail
Cassie Mod
Mar 13 2017 11:45 AM
179
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
How to resolve this error?
Please tell me how to use Configuration's save method