Sign in to follow this  
Followers 0
Kogmedia

Yahoo Login

3 posts in this topic

;Yahoo Login Script 26/05/07
;===========================
;Author:  KogMedia          http://www.autoitscript.com/forum/index.php?showuser=22894

#include <IE.au3>
$USERNAME = 'username'
$PASSWORD = 'password'
$oIE = _IECreate ("https://login.yahoo.com/config/login_verify2?&.src=ym",0,1,1)
$oForm = _IEFormGetCollection ($oIE, 0)
$oLogin = _IEFormElementGetObjByName($oForm, "login")
$oPass = _IEFormElementGetObjByName($oForm,"passwd")
_IEFormElementGetObjByName($oLogin,"login")
_IEFormElementGetObjByName($oPass,"passwd")
_IEFormElementSetValue($oLogin,$USERNAME)
_IEFormElementSetValue($oPass,$PASSWORD)
_IEFormSubmit($oForm)

;WinWaitActive("Security Alert", "&Yes")
;ControlClick ("Security Alert", "You are about to leave a secure Internet connection", 1)

;WinWaitActive("Yahoo! Mail Beta, EMAIL_ACOUNT_USERNAME - Microsoft Internet Explorer")


[font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search

Share this post


Link to post
Share on other sites



Strictly speaking I believe this can be done with HTTP.au3 functions for form methods, so you could log-in in the background.

Share this post


Link to post
Share on other sites

;Yahoo Login Script 26/05/07
;===========================
;Author:  KogMedia          http://www.autoitscript.com/forum/index.php?showuser=22894

#include <IE.au3>
$USERNAME = 'username'
$PASSWORD = 'password'
$oIE = _IECreate ("https://login.yahoo.com/config/login_verify2?&.src=ym",0,1,1)
$oForm = _IEFormGetCollection ($oIE, 0)
$oLogin = _IEFormElementGetObjByName($oForm, "login")
$oPass = _IEFormElementGetObjByName($oForm,"passwd")
_IEFormElementGetObjByName($oLogin,"login")
_IEFormElementGetObjByName($oPass,"passwd")
_IEFormElementSetValue($oLogin,$USERNAME)
_IEFormElementSetValue($oPass,$PASSWORD)
_IEFormSubmit($oForm)

;WinWaitActive("Security Alert", "&Yes")
;ControlClick ("Security Alert", "You are about to leave a secure Internet connection", 1)

;WinWaitActive("Yahoo! Mail Beta, EMAIL_ACOUNT_USERNAME - Microsoft Internet Explorer")

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0