Hello all,
I am a longtime AutoIT tinkerer, first time poster.
I am trying to write a script to enter me into a drawing once daily. When I run the code below, I get the following notifications (see below). I used the Chrome Element Inspector to get the element names and there are not duplicates of the element names, so that's not the problem. My only guess is that the webpage being a .php is somehow causing problems. Any help would be greatly appreciated!
Thanks,
Fred
#include <IE.au3> Call("SignIn") Func SignIn() Global $oIE = _IECreate("http://penn-station.com/summergift2013.php") Local $Username = _IEGetObjByName($oIE, "Name") Local $Password = _IEGetObjByName($oIE, "Email") _IEFormElementSetValue($Username, "User") _IEFormElementSetValue($Password, "Pass") EndFunc ;==>SignIn
"...
--> IE.au3 V2.4-0 Warning from function _IEGetObjByName, $_IEStatus_NoMatch (Name: Name, Index: 0)
--> IE.au3 V2.4-0 Warning from function _IEGetObjByName, $_IEStatus_NoMatch (Name: Email, Index: 0)
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
+>14:17:23 AutoIt3.exe ended.rc:0
>Exit code: 0 Time: 1.657"