Jump to content

_IEFormSubmit question.


Nahuel
 Share

Recommended Posts

#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! :)

Link to comment
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.

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