Jump to content

Submit form


Recommended Posts

#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 by tsolrm
Link to comment
Share on other sites

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 by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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.

 
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...