tsolrm 0 Posted March 25, 2011 (edited) #include <IE.au3> $oIE1 = _IECreate ("http://flexlists.com/key/5Xn8Gwmp3362xmdjJfXvmV6vIZWe1kj6iGfYcBng", 0, 0, 1, 0) $oIE = _IECreate ("http://flexlists.com/add.php?list_id=17249", 0, 0, 1, 0) $oForm = _IEFormGetObjByName ($oIE, "tableAddForm") $oQuery = _IEFormElementGetObjByName ($oForm, "_field_149714") _IEFormElementSetValue ($oQuery, "Supertest3") _IEFormSubmit ($oForm) This fills in the field "Player" in the form and submists it. The problem is that i have to repeat this procedure 100+ times and iexplorer.exe processes just keep piling up. How can this be resolved? Thanks Edited March 25, 2011 by tsolrm Share this post Link to post Share on other sites
bogQ 91 Posted March 25, 2011 (edited) what part of procedure do you repeat? Do you create new IE win every time or do you redirect old win, do you close old win "_IEQuit "? How about some more info Edited March 25, 2011 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Share this post Link to post Share on other sites
GMK 25 Posted March 25, 2011 It sounds like an array and/or loop would help you out. Perhaps you can do something like this: #include <IE.au3> ;Define $aArray here ;... $oIE = _IECreate ("http://flexlists.com/add.php?list_id=17249", 0, 0, 1, 0) For $i = 0 To UBound($aArray) - 1 $oForm = _IEFormGetObjByName ($oIE, "tableAddForm") $oQuery = _IEFormElementGetObjByName ($oForm, "_field_149714") _IEFormElementSetValue ($oQuery, $aArray[$i]) _IEFormSubmit ($oForm) Next In other words, you don't need to repeat the following line:$oIE = _IECreate ("http://flexlists.com/add.php?list_id=17249", 0, 0, 1, 0) #include <IE.au3> $oIE1 = _IECreate ("http://flexlists.com/key/5Xn8Gwmp3362xmdjJfXvmV6vIZWe1kj6iGfYcBng", 0, 0, 1, 0) $oIE = _IECreate ("http://flexlists.com/add.php?list_id=17249", 0, 0, 1, 0) $oForm = _IEFormGetObjByName ($oIE, "tableAddForm") $oQuery = _IEFormElementGetObjByName ($oForm, "_field_149714") _IEFormElementSetValue ($oQuery, "Supertest3") _IEFormSubmit ($oForm) This fills in the field "Player" in the form and submists it. The problem is that i have to repeat this procedure 100+ times and iexplorer.exe processes just keep piling up. How can this be resolved? Thanks Share this post Link to post Share on other sites