Jump to content
Sign in to follow this  

IE problem

Recommended Posts


#include <IE.au3>
$IE = _IECreate("http://login.live.com/login.srf?id=2&svc=mail&cbid=24325&msppjph=1&tw=0&fs=1&fsa=1&fsat=1296000&_lang=EN&lc=1033")
$form = _IEFormGetObjByName($IE,"login_form")
$Email = _IEFormElementGetObjByName($form,"i0512")
$Password = _IEFormElementGetObjByName($form,"i0118")
_IEFormElementSetValue($Email,"YOUR USERNAME HERE")
_IEFormElementSetValue($Password,"YOUR PASSWORD HERE")

won't work, but when i open msn up with a text editor it says the the id for your email name is i0512 and it says the id for the pass is i0118 but that doesn't work either and i want the msn logn option of "Always ask for my e-mail address and password. and is there a better way of getting these commands with out opeing the browser with notepad ?


Share this post

Link to post
Share on other sites

Look at the name of the functions, _IEFormElementGetObjByName, not _IEFormElementGetObjById.

Try this:

#include <IE.au3>

$oIE = _IECreate ("http://login.live.com/login.srf?lc=1033&sf=1&id=2&ru=&tw=0&fs=1&kv=0&cb=&cbid=24325")

$oForm = _IEFormGetObjByName ($oIE, "f1")
$oEmail = _IEFormElementGetObjByName ($oForm, "login")
$oPassword = _IEFormElementGetObjByName ($oForm, "passwd")

_IEFormElementSetValue ($oEmail, "YOUR USERNAME HERE")
_IEFormElementSetValue ($oPassword, "YOUR PASSWORD HERE")
_IEFormSubmit ($oForm)

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.