Disturbed Posted April 14, 2009 Share Posted April 14, 2009 (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<mpl=default<mplcache=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 April 14, 2009 by Disturbed Link to comment Share on other sites More sharing options...
MrMitchell Posted April 14, 2009 Share Posted April 14, 2009 Here's a related thread, see if it helps:http://www.autoitscript.com/forum/index.ph...20&hl=gmailBasically you should probably #include <IE.au3> and use some of those functions... Link to comment Share on other sites More sharing options...
Disturbed Posted April 14, 2009 Author Share Posted April 14, 2009 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}') 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