lequithienan Posted October 19, 2009 Share Posted October 19, 2009 #include <ie.au3> $oie = _IECreate("https://www.woodinvillewinecountry.com/OrderForm.cfm?cart=22274003",1,1) _Ieloadwait($oie) $html = _IEDocReadHtml($oie) $username_default = "bryanmcf" $password_default = "discovery" If stringinstr($html,"please log in") Then $formlogin = _IEFormGetObjByName($oie,"login") $username = _IEFormElementGetObjByName($formlogin,"username") $password = _IEFormElementGetObjByName($formlogin,"password") _IEFormElementSetValue($username,$username_default) _IEFormElementSetValue($password,$password_default) _IEFormSubmit($oie) Endif This is my code , function login to website woodinvillewinecountry.com . I can fill in to form but not submit form to login . Plz help me Link to comment Share on other sites More sharing options...
furrycow Posted October 19, 2009 Share Posted October 19, 2009 #include <ie.au3> $oie = _IECreate("https://www.woodinvillewinecountry.com/OrderForm.cfm?cart=22274003",1,1) _Ieloadwait($oie) $html = _IEDocReadHtml($oie) $username_default = "bryanmcf" $password_default = "discovery" If stringinstr($html,"please log in") Then $formlogin = _IEFormGetObjByName($oie,"login") $username = _IEFormElementGetObjByName($formlogin,"username") $password = _IEFormElementGetObjByName($formlogin,"password") $login = _IEFormElementGetObjByName($formlogin,"Submit") _IEFormElementSetValue($username,$username_default) _IEFormElementSetValue($password,$password_default) _IEAction ($login,"click") Endif Just like with the username and password, yovue got to get the element object of the submit button, on which you can then, "click". Instant Lockerz Invite - www.instantlockerzinvite.co.uk Link to comment Share on other sites More sharing options...
lequithienan Posted October 19, 2009 Author Share Posted October 19, 2009 Thanks very much Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now