Auto-login problem
Posted: 06 Nov 2018, 13:25
Hello boys,
I'm kinda of struggling with this for a while now, and cannot find answer.
I'm using this to autologin on several websites, to facilitate my "starting of day" procedure.
Well, this is until this website comes up.
I cannot, for the life of me, understand how to keep data on the fields, because as soon as i tell it to click login button, the data disapears..
What am i doing wrong?
I just want it to login nothing more.
Created user to test the login, tested it and it logs in the website by hand..
Thanks in advance to any charitable soul that wants a small challenge
I'm kinda of struggling with this for a while now, and cannot find answer.
I'm using this to autologin on several websites, to facilitate my "starting of day" procedure.
Well, this is until this website comes up.
I cannot, for the life of me, understand how to keep data on the fields, because as soon as i tell it to click login button, the data disapears..
What am i doing wrong?
Code: Select all
ie := ComObjCreate("InternetExplorer.Application")
ie.Visible := True ; Make the IE object visible
WinActivate,% "ahk_id " hwnd:=ie.Application.Hwnd
ie.Navigate("support.hpe.com/hpesc/home/profile")
IEWait(ie){
while ie.busy || (ie.document && ie.document.readyState != "complete") || ie.readyState!=4
Sleep 3000
}
IEWait(ie)
IE.document.getElementById("username").Value := "WillTester"
sleep 500
IE.document.getElementById("password").Value := "Testing123*"
sleep 500
IE.document.getElementById("signIn").Click()
return
Created user to test the login, tested it and it logs in the website by hand..
Thanks in advance to any charitable soul that wants a small challenge