Sign in to follow this  
Followers 0
Newb

Need a clarification on _IEFormGetCollection and similar

1 post in this topic

Hi everyone,

Would like a clarification on IE.au3 functions _IEFormGetCollection, _IEFormElementGetCollection and all the relative functions.

In particular I would like to know these 2.

From help file:

_IEFormGetCollection

Returns a collection object variable representing the Forms in the document or a single form by index.

Staying simple, it returns kinda an array containing all forms in the page?

And, what it's intended for "form"? How a form is "delimited" in a page?

For example, in a page like this:

Posted Image

What should I expect? A collection of 3 items?

For example making it

$FormColl=_IeFormElementCollection ($oIE,0)
;Where $oIE is the webpage above

Will FormColl become an object containing the first form or what???

Or an array containing forms?

Also,

Local $oFormUser=_IEFormElementGetCollection ($FormColl,0)
Local $oFormPass=_IEFormElementGetCollection ($FormColl,1)

Should get the first and second field of the form? (With "get" i mean they'll catch a reference to it so i can set,type in, delete values on it and more)

Also, calling

_IEFormElementGetCollection ($FormColl,2)
Will get the login button?

Hoping to have been clear, i look forward for your replies.

PS: Anyone have some code examples or tutorials on the IE.au3 functions?

THank you.


I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it.

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  
Followers 0