JackWebb Posted August 6, 2015 Posted August 6, 2015 Hi Everyone! So I use Autoit to automate my logins. Gmail has recently made some changes to their login page that breaks my script. The username goes in okay, but not the password. I can type in the password manually and it's no problem. What I can't understand is how does the browser know the password is not being typed in manually? I tried every trick I could think of (i'm an Autoit noob) to simulate human typing. Using send() raw and slowing down the type rate of the keys. Nothing works, can anyone shed some light on this? #include <WinAPIShPath.au3> #include <Array.au3> Opt("SendKeyDelay", 25) Opt("SendKeyDownDelay", 25) Send("email@gmail.com", 1) sleep(1500) Send("{enter down}", 0) Send("{enter up}", 0) sleep(1500) Send("password", 1) sleep(1500) Send("{enter down}", 0) Send("{enter up}", 0) eodtech2001 1
TheFixer Posted August 7, 2015 Posted August 7, 2015 (edited) #include <WinAPIShPath.au3> #include <Array.au3> HotKeySet("{F2}","start") Func start() sleep(200) Send("EMAIL@gmail.com") sleep(1000) Send("{enter}") sleep(1000) Send("PASSWORD") sleep(1000) Send("{enter}") Exit EndFunc While 1 sleep(100) WEndNot sure if you're still having trouble... but i tested that and it worked for me (change email and password to your email and password in case it wasn't obvious )(if it doesn't work try running as Admin) Edited August 7, 2015 by TheFixer adding some more info :) JackWebb 1
JackWebb Posted August 10, 2015 Author Posted August 10, 2015 Fixer! Thank you for that. I copied your code and it just worked, I was beside myself. It forced me to look at other parts of my code and lo and behold.. I found the problem in another part of my program.. It happens like that sometimes. So thank you for removing my blinders, I owe you a beer! Jack 8-)
Ram Posted May 13, 2018 Posted May 13, 2018 Hi, Is it possible for you to share the full script you have tried for the new Gmail method? Thanks!
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