Hi
I'm having some trouble with an auto login code I'm trying to write, and would like some help![:)]()
Having read the rules, and looking at other threads, I apologise now if this is against the rules, but I don't think it is...
What I'm trying to do...
Create GUI to enter details (user, pass) and save to file.
Create code to open webpage and send details.
Navigate to specific page.
Save a .pdf file from drop down menu to PC
This is the code I have (I appreciate it is not pretty):
The biggest part I am having trouble with is send the details to the webpage. It is a .aspx site and I receive the error message:
--> IE.au3 V2.4-0 Warning from function _IEGetObjByName, $_IEStatus_NoMatch (Name: input#ct100$PageBody$userName, Index: 0)
--> IE.au3 V2.4-0 Warning from function _IEGetObjByName, $_IEStatus_NoMatch (Name: ct100$PageBody$password, Index: 0)
--> IE.au3 V2.4-0 Warning from function _IEGetObjByName, $_IEStatus_NoMatch (Name: ct100$PageBody$PIN, Index: 0)
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
>Exit code: 0 Time: 11.325
Does anyone have any ideas how to get the details sent to the webpage??
Thanks in advance!!
I'm having some trouble with an auto login code I'm trying to write, and would like some help
![:)](http://aut1.autoit-cdn.com/forum/public/style_emoticons/default/smile.png)
Having read the rules, and looking at other threads, I apologise now if this is against the rules, but I don't think it is...
What I'm trying to do...
Create GUI to enter details (user, pass) and save to file.
Create code to open webpage and send details.
Navigate to specific page.
Save a .pdf file from drop down menu to PC
This is the code I have (I appreciate it is not pretty):
[ autoit ]
#include $W = "http://webpage" $oIE = _IECreate($W, 0, 1, 1, 1) _IELoadWait ($oIE) Local $username =_IEGetObjByName ($oIE, "input#ct100$PageBody$userName") Local $password =_IEGetObjByName ($oIE, "ct100$PageBody$password") Local $pin = _IEGetObjByName($oIE, "ct100$PageBody$PIN") _IEFormElementSetValue ($username, "User") _IEFormElementSetValue ($password, "Pass") _IEFormElementSetValue ($pin, "Pin")
The biggest part I am having trouble with is send the details to the webpage. It is a .aspx site and I receive the error message:
--> IE.au3 V2.4-0 Warning from function _IEGetObjByName, $_IEStatus_NoMatch (Name: input#ct100$PageBody$userName, Index: 0)
--> IE.au3 V2.4-0 Warning from function _IEGetObjByName, $_IEStatus_NoMatch (Name: ct100$PageBody$password, Index: 0)
--> IE.au3 V2.4-0 Warning from function _IEGetObjByName, $_IEStatus_NoMatch (Name: ct100$PageBody$PIN, Index: 0)
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
>Exit code: 0 Time: 11.325
Does anyone have any ideas how to get the details sent to the webpage??
Thanks in advance!!
![:)](http://aut1.autoit-cdn.com/forum/public/style_emoticons/default/smile.png)