Jump to content

I'm sure it's been done before...


CyNDeR
 Share

Recommended Posts

Just learning the IE functions a little better.

#include <IE.au3>
$Email = "" ;Your e-mail address
$Pass = "" ;Your password
$oIE = _IECreate("http:\\www.facebook.com") ;Open Facebook website
WinSetState("Facebook | Welcome to Facebook!", "", @SW_MAXIMIZE) ;Maximize the window
$LoginForm = _IEFormGetObjByName($oIE, "loginform") ;Find login form
$EmailBox = _IEFormElementGetObjByName($LoginForm, "email") ;Find e-mail input box
$PassBox = _IEFormElementGetObjByName($LoginForm, "pass") ;Find password input box
_IEFormElementSetValue($EmailBox, $Email) ;Fill in your e-mail address
_IEFormElementSetValue($PassBox, $Pass) ;Fill in your password
_IEFormSubmit($LoginForm, 0) ;Submit the form

My scripts: Random Painter

Link to comment
Share on other sites

I believe there has been a whole UDF made for Facebook, I think by Generator. Good script though. <_< And the comments are nice.

Hmm, i'll have to check it out, i havent seen it. I pretty much just made this to help myself and others learn a little about the IE functions, hence the comments. :)

My scripts: Random Painter

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...