Sign in to follow this  
Followers 0
Disturbed

How to enter text in particular textbox

3 posts in this topic

#1 ·  Posted (edited)

Hi all,

I m new to autoit n went through the forum today morning.. i just wanted to automate my gmail acoount .

This code opens the gmail page but i m not abel to send my username and password into the specified text boxes.. can u please guide me how to make this work

ShellExecute("iexplore.exe", "http://www.gmail.com")

WinWaitActive ( "Internet Explorer" )

WinSetState ( "Internet Explorer", "", @SW_MAXIMIZE )

;Send ( "{F6}" )

;Send ( "https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&bsv=zpwhtygjntrz&scc=1&ltmpl=default&ltmplcache=2 {ENTER}" )

WinGetTitle("Gmail: Email from Google-Microsoft Internet Explorer provided by Motorola")

;WinWait($title, 'Gmail: Email from Google-Microsoft Internet Explorer provided by Motorola')

Sleep(2000)

Send("chandan.sprabhu@gmail.com")

Send("{TAB}")

Send("chandan")

Sleep(2000)

ControlClick($title, 'Gmail: Email from Google-Microsoft Internet Explorer provided by Motorola', 'Sign in')

;ControlClick($title, 'Gmail: Email from Google-Microsoft Internet Explorer provided by Motorola', 'Sign &in')

;send("{ENTER}")

Edited by Disturbed

Share this post


Link to post
Share on other sites



Hey, Thank u mitchell for the hint but i came up with a simple script that could do my work. The script is as follows..

ShellExecute("firefox.exe", "http://www.gmail.com")

Sleep(2000);

Send('disturbed@gmail.com')

Send('{TAB}')

Send('disturbed')

Send('{ENTER}')

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