Jump to content

Problem with GMAIL login script


Recommended Posts

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)

 

Link to comment
Share on other sites

#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)
WEnd

Not 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 by TheFixer
adding some more info :)
Link to comment
Share on other sites

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-)

 

Link to comment
Share on other sites

  • 2 years later...

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
 Share

×
×
  • Create New...