FranKG Posted September 23, 2016 Share Posted September 23, 2016 Hello everyone! I thank those who help me ... forgive my English! I would like to create a script that automatically select the word PENDING. Unfortunately I can not change the web page and enter the NAME tag ... #include <IE.au3> $oIE = _IECreate("http://www.site.com/ManageSingleReqs.html") $oForm = _IEFormGetCollection($oIE) $oSelect = _IEFormElementGetCollection($oForm, "143") _IEAction($oSelect, "focus") _IEFormElementOptionSelect($oSelect, "PENDING") <form action="#" method="POST"> <table border="1"><tbody> <tr> <select name="143"> <option>ACCETTATO</option> <option>PENDING</option> <option>COPIE INSUFFICIENTI</option> <option>COPIE UGUALI</option> <option>COPIE INFERIRORI</option> <option>CONFERMA INDIRIZZO</option> <option>CONTRATTO SCADUTO</option> <option>NO CONVENZIONE</option> <option>ALTRO</option> <option>DA GESTIRE</option> </select> </tr> </tbody> </table> <input type="submit" value="SEND"> </form> Link to comment Share on other sites More sharing options...
jguinch Posted September 23, 2016 Share Posted September 23, 2016 try to set the $sMode parameter to "byText" in _IEFormElementOptionSelect Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
FranKG Posted September 23, 2016 Author Share Posted September 23, 2016 Ok i have fixed.. #include <IE.au3> $oIE = _IECreate("http://localhost/ManageSingleReqs.html", 1, 1, 0) sleep(1000) For $i = 142 To 144 $oForm = _IEFormGetCollection($oIE,0) $oSelect = _IEFormElementGetObjByName($oForm, ""&$i&"") _IEAction($oSelect, "focus") _IEFormElementOptionSelect($oSelect, "DA GESTIRE", 1, "byText") Next Ok I fixed the code .. now it works but only if I open the explorer window .. otherwise I return the 1784 error.........Why? Link to comment Share on other sites More sharing options...
FranKG Posted September 23, 2016 Author Share Posted September 23, 2016 FIXED.. THX! #include <IE.au3> $URL="http://localhost/ManageSingleReqs.html" Local $tempIE = _IECreate($URL,1,1,1,1) ; Sleep(1000) $oIE = _IECreate($URL,1,1,1,1) ; For $i = 142 To 144 $oForm = _IEFormGetCollection($oIE,0) $oSelect = _IEFormElementGetObjByName($oForm, ""&$i&"") _IEAction($oSelect, "focus") _IEFormElementOptionSelect($oSelect, "DA GESTIRE", 1, "byText") Next 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