ThomasQ Posted April 21, 2010 Share Posted April 21, 2010 Hi! I've got a question about the _IEFormElementGetCollection function. I know how to use the information in the collection object, and how to use the different form elements. But how can I identiy what kind of form element is what? For example Textelement, radioselect, checkbox select, etc.. Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 21, 2010 Share Posted April 21, 2010 Use .type: #include <IE.au3> $oIE = _IE_Example("form") $oForm = _IEFormGetCollection($oIE, 0) $colElements = _IEFormElementGetCollection($oForm) $n = 0 For $oElement In $colElements ConsoleWrite($n & ": " & $oElement.type & @LF) $n += 1 Next 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...
ThomasQ Posted April 21, 2010 Author Share Posted April 21, 2010 Thanks!! I'm fairly new using autoit, and this script is the first time i'm using the .name, .count & .type functions. Where can I read up on this in the help file, what are those functions called? Thank in advance, Thomas Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 21, 2010 Share Posted April 21, 2010 (edited) They are not functions and not defined by AutoIt, they are properties of the objects. The objects are defined by whatever app created them. In this case, the IE Document Object Model (DOM) element properties. MSDN: DHTML PropertiesNotice from that list that .type can mean many different things depending on what kind of object it is for.P.S.: There is a general info section in help file called OBJ/COM Reference. Edited April 21, 2010 by PsaltyDS 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...
ThomasQ Posted April 21, 2010 Author Share Posted April 21, 2010 Thanks! I've read the OBJ/COM Reference, but I'll check out the MSDN: DHTML Properties too! 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