Sign in to follow this  
Followers 0
Nahuel

_IEFormSubmit question.

4 posts in this topic




#include <IE.au3>

$oIE = _IECreate ("http://www.atfreeforum.com/internationalca/login.php")
$oUser =_IEGetObjByName($oIE,"username")
$oPass =_IEGetObjByName($oIE,"password")
$oSubmit = _IEGetObjByName($oIE, "login")

_IEFormElementSetValue ($oUser, 'my_username')
_IEFormElementSetValue ($oPass, 'my_password')
_IEAction ($oSubmit, "click")

Here you go :)

Look the help file, too! :)

Share this post


Link to post
Share on other sites

haha, thanks! I did read it. This is what I had done:

$oIE = _IECreate ("http://www.atfreeforum.com/internationalca/login.php?")
_IELoadWait($oIE)
WinSetState("","",@SW_MAXIMIZE)
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery1 = _IEFormElementGetCollection ($oForm, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 1)
_IEFormElementSetValue ($oQuery1, "Username")
_IEFormElementSetValue ($oQuery, "password")

But I was stuck there! Thanks. That worked perfectly.

Share this post


Link to post
Share on other sites

One more thing. I managed to login to my boards with your help but now I cant send the message because I can't figure out the name of the 'Enviar' button (Submit) here: http://www.atfreeforum.com/internationalca...internationalca

I tried with Send, submit, post, enviar... none of them work.

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