continyu Posted July 12, 2010 Posted July 12, 2010 I'm making simple script for myself. When i open my computer my script open an ie window than login facebook. FOR log in part i tried this code ; #include <IE.au3> $visible = 1 ;1 Visib 0 invisib $oIE = _IECreate("https://login.facebook.com/login.php?login_attempt=1",0,$visible) $oLOGINFORM = _IEFormGetCollection($oIE, 0) $uname = ("user@hotmail.com") $upass = ("12345") $oLoginBox = _IEFormGetObjByName($oLOGINFORM,"email") $oPassBox = _IEFormGetObjByName($oLOGINFORM,"pass") _IEFormElementSetValue($oLoginBox,$uname) _IEFormElementSetValue($oPassBox,$upass) $oLoginButton = _IEFormGetObjByName($oLOGINFORM,"login") _IEAction($oLoginButton,"click") It seems right to me... But it gaves those errors to console of scite; --> IE.au3 V2.4-0 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch --> IE.au3 V2.4-0 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch --> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType --> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType --> IE.au3 V2.4-0 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch --> IE.au3 V2.4-0 Error from function _IEAction, $_IEStatus_InvalidDataType I know i'm asking too much help in this forum. But you can be sure i'm trying my best
PsaltyDS Posted July 12, 2010 Posted July 12, 2010 You want _IEFormElementGetObjByName(). The function _IEFormGetObjByName() is for retrieving the form itself, not an element within the form. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
continyu Posted July 12, 2010 Author Posted July 12, 2010 I see... It's going to be late here... I think i need a good rest Thank you very much... Excuse to bother you...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now