Jump to content
Sign in to follow this  
Nahuel

_IEFormSubmit question.

Recommended Posts

Didonet

#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
Nahuel

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.