Jump to content

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


Recommended Posts

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:

Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...