Jump to content
Sign in to follow this  

Script Stops If Don;t FInd Form Element ,Solution?

Recommended Posts


Global $oForms = _IEFormGetCollection($ie)
For $oForm In $oForms
If $oForm.action = "https://mobile.twitter.com/session" Then Local $sform = $oForm
Local $oText = _IEFormElementGetObjByName($sform, "username")
if $oText=$_IEStatus_NoMatch Then MsgBox(1,"","hmm")

THis is my Script

It fail to find the element And makes a error

Local $oText = _IEFormElementGetObjByName(^ ERROR

how to make condition to ignore it and continue if it dont find element

i tried

if $oText=$_IEStatus_NoMatch Then MsgBox(1,"","hmm")

and tried other like

if $oText=7 Then MsgBox(1,"","hmm")

But it didn;t worked

Please Help me thanks :)

Share this post

Link to post
Share on other sites

Thanks it worked :)

Before i used "If" Condition to check tittle for skiping codes..

Thanks again,i forgot to declare. such a simple mistake

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...