Jump to content
Sign in to follow this  
Rorka

_IEAction()

Recommended Posts

Rorka

*Solved*

Edited by Rorka

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
evilertoaster

#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")

Share this post


Link to post
Share on other sites
Rorka

#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

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.