1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| AutoLoginGmail "mail.google.com","Votre Login","Votre mot de passe"
wscript.sleep 5000
AutoLoginYahoo "mail.yahoo.fr","Votre Login","Votre mot de passe"
Sub AutoLoginGmail(URL,Login,Password)
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = 1
IE.navigate URL
Do While (IE.Busy)
WScript.Sleep 10
Loop
Set Helem = IE.document.getElementById("Email")
Helem.Value = Login
Set Helem = IE.document.getElementById("Passwd")
Helem.Value = Password
Set Helem = IE.document.Forms(0)
Helem.Submit
Set IE = Nothing
End Sub
Sub AutoLoginYahoo(URL,Login,Password)
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = 1
IE.navigate URL
Do While (IE.Busy)
WScript.Sleep 10
Loop
Set Helem = IE.document.getElementById("username")
Helem.Value = Login
Set Helem = IE.document.getElementById("Passwd")
Helem.Value = Password
Set Helem = IE.document.Forms(0)
Helem.Submit
Set IE = Nothing
End Sub |
Partager