Jump to content

Comes up with $_IEStatus_NoMatch


benydc
 Share

Recommended Posts

Ok, I am trying to attack to an url I opening. I doesn't want to attach to it everytime I try and with different methods.

Here is the current code I am using:

#include <IE.au3>
; Create a browser window and navigate
#AutoIt3Wrapper_Run_Debug_Mode=Y
_IEErrorHandlerRegister()
Global $sUrl = "http://vasthits.com/index.php?_w=login"
Global $oIE = _IEAttach($sUrl, "url")
If not isObj($oIE) Then
    $oIE = _IECreate()
    _IENavigate($oIE, $sUrl)
EndIf
If IsObj(_IEAttach ("VastHits.com Manual Traffic Exchange", "Embedded")) Then ConsoleWrite("Success" & @CRLF)

; get pointers to the login form and username and password fields
$o_frame = _IEFrameGetCollection($oIE, 1)
$o_form = _IEFormGetObjByName($o_frame, "login_form")
;Hidden fields for user name and password
$o_login = _IEFormElementGetObjByName($o_form, "email")
$o_password = _IEFormElementGetObjByName($o_form, "password")

; Set field values and submit the form
_IEFormElementSetValue($o_login, "1234")
_IEFormElementSetValue($o_password, "abcd")
;~ _IEFormSubmit($o_form)   ;Instead of form submit, simulate click on the Login button
$o_loginbutton = _IEFormElementGetObjByName($o_form, "loginbutton")
_IEAction($o_loginbutton, "B1")
Exit

and this is the error message:

--> IE.au3 V2.4-0 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Warning from function _IEFrameGetCollection, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Error from function _IEFormGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEAction, $_IEStatus_InvalidDataType

What in the world I am doing wrong? If you can tell me whats wrong and why it doesn't I will handle from there.

Link to comment
Share on other sites

  • 6 years later...

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