Google login with ahk

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
tm6464
Posts: 48
Joined: 17 Jul 2017, 22:56

Google login with ahk

19 Jun 2018, 13:40

Hi
i want login to Google with ahk

enter email works
enter PW not work

here my script anyone can help fix it?

Code: Select all

logingoogle:
WB := ComObjCreate("InternetExplorer.Application")
WB.Visible := true
WB.Navigate("https://accounts.google.com/ServiceLogin?sacu=1&continue=https%3A%2F%2Faccounts.google.com%2FManageAccount&hl=en#identifier")
While wb.readyState != 4 || wb.document.readyState != "complete" || wb.busy
Sleep, 1000
wb.document.GetElementById("identifierId").value := "[email protected]"
Sleep, 1000
wb.document.getElementById("identifierNext").click()
Sleep, 1000
wb.document.getElementsByClassName("password").value := "xxxxxx"
Sleep, 1000
wb.document.getElementById("identifierNext").click()
Sleep, 1000
tooltip, End
return
gregster
Posts: 9035
Joined: 30 Sep 2013, 06:48

Re: Google login with ahk

19 Jun 2018, 13:52

Try

Code: Select all

wb.document.getElementsByClassName("password")[0].value := "xxxxxx"
(untested)
With this method, you get elements. Hence, you will have to choose one - above I assume that it is the first (and only?) one . (COM returns zero-based objects)
tm6464
Posts: 48
Joined: 17 Jul 2017, 22:56

Re: Google login with ahk

19 Jun 2018, 14:22

gregster wrote:Try

Code: Select all

wb.document.getElementsByClassName("password")[0].value := "xxxxxx"
(untested)
With this method, you get elements. Hence, you will have to choose one - above I assume that it is the first (and only?) one . (COM returns zero-based objects)
thx but this also not work - error unkown name
any other idea

bzw here u can see pic of the website code http://prntscr.com/jwv8zj

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Araphen, CrowexBR, mcd, rubeusmalfoy, ShatterCoder, spellegrnio1 and 83 guests