nadeem0035 Posted October 21, 2011 Share Posted October 21, 2011 #include <IE.au3> $oIE = _IECreate ("http://www.google.com.pk") _IELoadWait ($oIE) Send("{F6 3}") Send("{TAB 8}") Send("{ENTER}") _IELoadWait ($oIE) Send("example@gmail.com") Send("{TAB}") Send("password") Send("{TAB}") Send("{ENTER}") #include <IE.au3> $oIE = _IECreate ("http://www.google.com.pk") _IELoadWait ($oIE) Sleep(500) Send("{F6 3}") Sleep(500) Send("{TAB 8}") Sleep(500) Send("{ENTER}") Sleep(500) _IELoadWait ($oIE) Sleep(500) Send("example@gmail.com") Sleep(500) Send("{TAB}") Sleep(500) Send("password") Sleep(500) Send("{TAB}") Sleep(500) Send("{ENTER}") Sleep(5000) using first code I got very bad result to login but only few time i loginusing second code i got best result but not correct login all time...i do not want to use sleep() function because some time google.com open very late.I want when google.com open and load complete and there should be written donein statues bar then send f6 and tab command and login page first load complete page then send user and password . Link to comment Share on other sites More sharing options...
iamtheky Posted October 21, 2011 Share Posted October 21, 2011 #include <IE.au3> $username = "" $password = "" _IeCreate ("https://www.google.com/accounts/ServiceLoginAuth?continue=http%3A//mail.google.com/gmail&service=mail&Email=" & $username) send ($password) send ("{TAB}") send("{ENTER}") ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
nadeem0035 Posted October 21, 2011 Author Share Posted October 21, 2011 (edited) #include <IE.au3> $username = "" $password = "" _IeCreate ("https://www.google.com/accounts/ServiceLoginAuth?continue=http%3A//mail.google.com/gmail&service=mail&Email=" & $username) send ($password) send ("{TAB}") send("{ENTER}") Thankssssssssssssss it is cooooollllllll but if i used to login other sites using code which i wrote.... there is any other way instead of _IELoadWait ($oIE) which is used for load wait to any other website??????? Edited October 21, 2011 by nadeem0035 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