Sign in to follow this  
Followers 0
continyu

facebook has some protection or i'm doing something wrong again!

3 posts in this topic

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 :blink:

Share this post


Link to post
Share on other sites



You want _IEFormElementGetObjByName(). The function _IEFormGetObjByName() is for retrieving the form itself, not an element within the form.

:blink:


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

Share this post


Link to post
Share on other sites

I see...

It's going to be late here...

I think i need a good rest ;)

Thank you very much... Excuse to bother you...

:blink:

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