Sign in to follow this  
Followers 0
logikal16

Gmail input boxes

5 posts in this topic

#1 ·  Posted (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 by logikal16

Share this post


Link to post
Share on other sites



anyone?

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by yummy22543

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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)

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  
Followers 0