Jump to content
Sign in to follow this  
sickliberty

Detecting a form

Recommended Posts

sickliberty

Hey guys, I'm just starting to learn, so please bear with me. I'm trying to make a script that would go to a form with IE and perform some kind of action. How can I make the program detect whether the form exists and have it give me back a message instead of an autoit error?

Func fillform()
        With $ObjIE.document.forms ("loginform")
.... blah blah blah... modify parameters / login... basically perform some kind of action
        EndWith
    EndFunc

Thanks.

Share this post


Link to post
Share on other sites
seandisanti

Hey guys, I'm just starting to learn, so please bear with me. I'm trying to make a script that would go to a form with IE and perform some kind of action. How can I make the program detect whether the form exists and have it give me back a message instead of an autoit error?

Func fillform()
        With $ObjIE.document.forms ("loginform")
.... blah blah blah... modify parameters / login... basically perform some kind of action
        EndWith
    EndFunc

Thanks.

check out dale's ie.au3, it handles forms and everything else in IE very nicely.

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  

×