Jump to content

Submit a Form on IE


Recommended Posts

i tried to submit a form i filled successfully with autoit

the problem is the form i tried to reciev has no name so i can use IEFormGetObjByName

so i tried this :

#include <IE.au3>
$oIE = _IECreate ("http://www.euros4click.de")
$oID = _IEGetObjByName ($oIE, "id")
$oPW = _IEGetObjByName ($oIE, "pw")
$oForm = _IEGetObjByName ($oIE, "login")
_IEFormElementSetValue ($oID, "xxxx")
_IEFormElementSetValue ($oPW, "xxxx")

my problem now i cant use IEFormSubmit ($oForm) autoit tells me the following

--> IE.au3 V2.4-0 Error from function _IEFormSubmit, $_IEStatus_InvalidObjectType

is there a way to work around.
Link to comment
Share on other sites

i tried to submit a form i filled successfully with autoit

the problem is the form i tried to reciev has no name so i can use IEFormGetObjByName

my problem now i cant use IEFormSubmit ($oForm) autoit tells me the following

is there a way to work around.

did you try _IEAction ($oForm, "click") ?

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

did you try _IEAction ($oForm, "click") ?

this worked thanks ^^

but i found out that i can use the oldstyle method ^^

like url?action=do&id=do&pw=dodo ^^

no i am trying to recieve the wanted content with regexp but now i stuck ^^

the code i need to read

<td width="244"><font class="content" size="2">Offene Werbeeinnahmen

gesamt<font size="1"><a href="java script:hilfe(7);" class="second">[?]</a></font>:</font></td>

<td width="118"><font class="content" size="2">8.79

€</font></td>

but im stuck here with the regexp shit ^^

the value i need

8.79

here what i tried

StringRegExp($sHTML, '</a></font>:</font></td><td width="118"><font class="content" size="2">(.*?)<', 3)

but helpless it returns nothing im still experimenting with some help would be nice ^^

Edited by unixu
Link to comment
Share on other sites

ok i found out that the regexp is skipping the <td width="118"><font class="content" size="2">8.79

</font></td> somehow -.-

my new regexp looks like the following just to see if the value is returned somewhere

$array = StringRegExp($sHTML, 'size="2">(?:\d*?)(?:\D*?)(?:\d*?)<', 3)

but itz completly skipping to return the 8.79

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...