Jump to content

_IEAction()


Rorka
 Share

Recommended Posts

Add _IEErrorHandlerRegister() to the top of your script, and run it in SciTE so the messages come up in the console. That will help you see what's going on. After you do this post the results you get in the console if you need more help.

As a start, this is odd:

$oSubmit = _IEGetObjByName ($oIE, "Username")
_IELoadWait ($oIE)

You appear to be trying to get object references from the page before you are sure it's done loading. Yet the _IELoadWait() is redundant, because unless you set the $f_wait = 0 option, _IECreate() calls _IELoadWait() by default anyway.

Next, why are you clicking on the inputs and then using Send()? You should be able to just use _IEFormElementSetValue() to put the value into the element directly. i.e.

_IEFormElementSetValue($oSubmit1, "Password")

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

#include <IE.au3>
$oIE = _IECreate("http://mmoxautomation.forumotion.com/login.forum?")
_IELoadWait ($oIE)
$oSubmit = _IEGetObjByName ($oIE, "Username")
_IEAction ($oSubmit, "focus")
Send("Username")
$oSubmit1 = _IEGetObjByName ($oIE, "Password")
_IEAction ($oSubmit1, "focus")
Send("Password")
$oSubmit2 = _IEGetObjByName ($oIE, "login")
_IEAction ($oSubmit2, "click")

Link to comment
Share on other sites

#include <IE.au3>
$oIE = _IECreate("http://mmoxautomation.forumotion.com/login.forum?")
_IELoadWait ($oIE)
$oSubmit = _IEGetObjByName ($oIE, "Username")
_IEAction ($oSubmit, "focus")
Send("Username")
$oSubmit1 = _IEGetObjByName ($oIE, "Password")
_IEAction ($oSubmit1, "focus")
Send("Password")
$oSubmit2 = _IEGetObjByName ($oIE, "login")
_IEAction ($oSubmit2, "click")

Thanks

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