Sign in to follow this  
Followers 0
Consty

_IEFormElementOptionSelect & _IEFormSubmit

2 posts in this topic

The script works on my computer (saved source code of the page) but only "flashes" when i try it online - it does not submit the option selected. So, when i open the file on my pc it trys to redirect - but not online. Any ideas why it doesent work? I've tried almost everything...

_IENavigate($oIE, "myfile.htm")

_IELoadWait($oIE)

$oForm= _IEFormGetCollection ($oIE,0)
$oSelect = _IEFormElementGetCollection ($oForm, 0)
_IEFormElementOptionselect ($oSelect, "bd329046a8f5708718afcd48fe1370ac", 1, "byvalue")
_IEFormSubmit ($oForm)

the page is a drop down menu with a submit, something like this:

<form action="buy.php " method="POST"></form><form action="buy.php" method="POST"></form><div class="tdi">overall (1200$)<br />

<form action=" buy.php " method="POST"> <select name="mission[1]" size="1" class="input">

<option

value="bd329046a8f5708718afcd48fe1370ac">keyboard</option>

<option value="3f164adf7515637a3108bedc7af6ab4b">monitor</option>

<option value="4b917ab7b92aa98d5519654b6f1ef1da">main board</option>

<option value="8a1cf39b21fd7f4e3af568217923c2a9">mouse</option>

<option value="2ede76f7095a4a93d18194f38cee9193">graphic</option>

<option value="2424922c493212ee2331c71af9713b69">overall</option>

</select>

<input type="hidden" name="mcp" value="1">

<input type="submit" class=input name="b1" value="Search!">

</form

thanks

Share this post


Link to post
Share on other sites



Put _IEErrorHandlerRegister() near the top and run it in SciTE so you can see all the console outputs. Should be some clues in there.

:mellow:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
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
Sign in to follow this  
Followers 0