Rorka Posted November 20, 2009 Share Posted November 20, 2009 (edited) *Solved* Edited November 25, 2009 by Rorka Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 20, 2009 Share Posted November 20, 2009 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 More sharing options...
evilertoaster Posted November 20, 2009 Share Posted November 20, 2009 #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 More sharing options...
Rorka Posted November 20, 2009 Author Share Posted November 20, 2009 #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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now