Jump to content
Sign in to follow this  
CyNDeR

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

Recommended Posts

CyNDeR

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

Share this post


Link to post
Share on other sites
JustinReno

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

Edited by JustinReno

Share this post


Link to post
Share on other sites
CyNDeR

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.