unixu Posted June 27, 2009 Share Posted June 27, 2009 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 More sharing options...
bogQ Posted June 27, 2009 Share Posted June 27, 2009 i tried to submit a form i filled successfully with autoitthe problem is the form i tried to reciev has no name so i can use IEFormGetObjByNamemy problem now i cant use IEFormSubmit ($oForm) autoit tells me the followingis there a way to work around.did you try _IEAction ($oForm, "click") ? 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. Link to comment Share on other sites More sharing options...
unixu Posted June 27, 2009 Author Share Posted June 27, 2009 (edited) 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 June 27, 2009 by unixu Link to comment Share on other sites More sharing options...
unixu Posted June 27, 2009 Author Share Posted June 27, 2009 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 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