z32tt Posted May 14, 2012 Posted May 14, 2012 (edited) I'm sure this is very easy for you guys, but I am new to writing code and this is killing me. I've been trying this for hours, but it's not working. Internet explorer starts and the webpage loads, but nothing happens after that, it doesn't put the text into the login box. The password I will enter manually without the script. #include <IE.au3> $oIE = _IECreate("something.com") _IELoadWait ($oIE) $oForm = _IEFormGetObjByName($oIE, "aspnetForm") ; Get reference to the input via the form object and the inputs name property $oInput = _IEFormElementGetObjByName($oForm, "ctl00$cphMainContent$txtLoginId") ; Set a new value for the input object _IEFormElementSetValue($oInput, "Test") Edited May 14, 2012 by z32tt
z32tt Posted May 14, 2012 Author Posted May 14, 2012 Hmm, apparently logins are against forum rules (even though this is actually for a local intranet script to get a machine on the domain). Please delete, thanks.
Recommended Posts