silvano Posted November 29, 2006 Share Posted November 29, 2006 hi, I'am a new baby and my english is not good, sorry I'have search the solution in the forum, but I'don't understand how I get the form value in IE please post me one example my ie form online: <form name="testForm"> <INPUT type="hidden" name="value" value="123456" > </form> tks Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted November 29, 2006 Moderators Share Posted November 29, 2006 This should be what you need. #include <IE.au3> $sURL = "www.YourWebpage.com" $oIE = _IECreate($sURL) $oForm = _IEFormGetObjByName($oIE, "testForm") $oInput = _IEFormElementGetObjByName($oForm, "value") $sValue = _IEFormElementGetValue($oInput) Link to comment Share on other sites More sharing options...
silvano Posted November 29, 2006 Author Share Posted November 29, 2006 This should be what you need. #include <IE.au3> $sURL = "www.YourWebpage.com" $oIE = _IECreate($sURL) $oForm = _IEFormGetObjByName($oIE, "testForm") $oInput = _IEFormElementGetObjByName($oForm, "value") $sValue = _IEFormElementGetValue($oInput) tanks very much Big_daddy!! ...sorry, you help me once again? the script for the input text form, set and send by autoit <FORM name='form' action="script.php"> <input type='text' name=''setAutoit"> <input name="botton" type="submit" value="Send"> </form> Link to comment Share on other sites More sharing options...
silvano Posted November 29, 2006 Author Share Posted November 29, 2006 I' am very happy this script work!! ...is correct? $oIE = _IECreate ($sURL) $oForm = _IEFormGetObjByName ($oIE, "form") $oQuery = _IEFormElementGetObjByName ($oForm, "textName") _IEFormElementSetValue ($oQuery, "12345") _IEFormSubmit ($oForm) 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