logikal16 Posted June 16, 2005 Share Posted June 16, 2005 (edited) ok... so i have an object $IE... and i'm trying to login to Gmail but i have no idea what the form names are, any help? This is what i came up with so far: $IE.window.gaia_loginform.Email.value = $user $IE.window.gaia_loginform.Passwd.value = $pass $IE.window.gaia_loginform.click () But it's not right... it's gaia_loginform something something... argh. Matt Edited June 17, 2005 by logikal16 Link to comment Share on other sites More sharing options...
logikal16 Posted June 16, 2005 Author Share Posted June 16, 2005 anyone? Link to comment Share on other sites More sharing options...
yummy22543 Posted June 17, 2005 Share Posted June 17, 2005 (edited) looks to me like the username box is named "Email" while the password box is named "Password". you have passwd in your script, so mabey thats the problem. where did you get gaia from? edit: i looked at the wrong name. the password box's name is Passwd. Edited June 17, 2005 by yummy22543 Link to comment Share on other sites More sharing options...
logikal16 Posted June 17, 2005 Author Share Posted June 17, 2005 right... and the form name that you have to type within is called gaia_loginform... so you must add that before you use Email or Passwd, but that alone doesn't work, there's something that goes before it (besides window.) and it's freakin frustrating.... argh Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted February 23, 2006 Moderators Share Posted February 23, 2006 Sorry to bring this post back from the dead, but I figured it out. This script will login to gmail: #include <IE.au3> ; Create a browser window and navigate to gmail $oIE = _IECreate() _IENavigate($oIE, "http://mail.google.com") ; get pointers to the login form and username and password fields $o_form = _IEFormGetObjByName($oIE, "gaia_loginform") $o_login = _IEFormElementGetObjByName($o_form, "Email") $o_password = _IEFormElementGetObjByName($o_form, "Passwd") ; Set field values and submit the form _IEFormElementSetValue($o_login, "your username") _IEFormElementSetValue($o_password, "your password") _IEFormSubmit($o_form) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now