Start by creating a new directory and make an autoit script. Edit the script and include IE.au3:
Suppose we're writing a script which will allow a anyone to sign in his facebook on a scheduled time automatically.
It's simple, don't panic!
You need to call a function with any name you want. Let's take loginfb()!
$username and $password are variables. "email" and "pass" are the names given to the textarea where you are to write your email address and password on Facebook. "loginbutton" is the Id given to the blue login button just before you login to your account.
What is the script doing?
You're simply giving a name the textarea for email address and password and replacing them by your email address and your password respectively.
You can also put an IEAction and click on the loginbutton or just Send Enter.
You can afterwards create a taskkill.bat file to close the internet explorer anytime.
If you're using Windows, then you have an app called Task Scheduler which might help you enjoy the auto login bot. :D
#include

Suppose we're writing a script which will allow a anyone to sign in his facebook on a scheduled time automatically.
It's simple, don't panic!
You need to call a function with any name you want. Let's take loginfb()!
call ("loginfb")So, we only have to write the function loginfb now!
Func loginfb()
Global $oIE = _IECreate ("https://www.facebook.com/")
Local $username = _IEGetObjByName ($oIE, "email")
Local $password = _IEgetObjByName ($oIE, "pass")
Local $button = _IEGetObjById ($oIE, "loginbutton")
_IEFormElementSetValue ($username, "") // your email here!
_IEFormElementSetValue ($password, "") //your fb password here!
Send("{Enter}")
EndFunc
$username and $password are variables. "email" and "pass" are the names given to the textarea where you are to write your email address and password on Facebook. "loginbutton" is the Id given to the blue login button just before you login to your account.
What is the script doing?
You're simply giving a name the textarea for email address and password and replacing them by your email address and your password respectively.
You can also put an IEAction and click on the loginbutton or just Send Enter.
_IEAction ($loginbutton, "click")There's also a "change your fb status" script. I may post that later but for the time being, get it on github.
You can afterwards create a taskkill.bat file to close the internet explorer anytime.
If you're using Windows, then you have an app called Task Scheduler which might help you enjoy the auto login bot. :D