lionfaggot Posted July 3, 2013 Share Posted July 3, 2013 well anyway, the _IEPropertget function has a visible paramaeter. now heres the issue, it only seems to work for form ids. i need it to work with _IEFormElementGetCollection im not sure exactly how to explain this but heres my code: $sForm = _IEFormGetOBJByName($object, 'main_form') $collection = _IEFormElementGetCollection($sForm) For $i = 1 To @extended $select = _IEFormElementGetCollection($sForm, $i) If _IEPropertyGet($select, "visible") Then _select($sForm, $i) EndIf Next anyone can help me? Link to comment Share on other sites More sharing options...
lionfaggot Posted July 4, 2013 Author Share Posted July 4, 2013 this is like mission impossible, seems all the questions i ask are on the complex side or something. Link to comment Share on other sites More sharing options...
DW1 Posted July 4, 2013 Share Posted July 4, 2013 well anyway, the _IEPropertget function has a visible paramaeter. now heres the issue, it only seems to work for form ids. i need it to work with _IEFormElementGetCollection im not sure exactly how to explain this but heres my code: $sForm = _IEFormGetOBJByName($object, 'main_form') $collection = _IEFormElementGetCollection($sForm) For $i = 1 To @extended $select = _IEFormElementGetCollection($sForm, $i) If _IEPropertyGet($select, "visible") Then _select($sForm, $i) EndIf Next anyone can help me? I think you are not getting an answer because the question is unclear. Are you sure that _select is not being triggered on anything other than form ID's? Have you done any error checking when calling _IEPropertyGet()? What exactly is _select doing? I suggest making the question more clear, letting us know what you have already done, let us know what the expected results are, and perhaps even include some of the html source. AutoIt3 Online Help Link to comment Share on other sites More sharing options...
lionfaggot Posted July 4, 2013 Author Share Posted July 4, 2013 Func _select($sForm, $i) $select = _IEFormElementGetCollection($sForm, $i) Return _IEAction($select, "click") ;MsgBox(0,"","") EndFunc Link to comment Share on other sites More sharing options...
lionfaggot Posted July 4, 2013 Author Share Posted July 4, 2013 _select() works, all i want to do is find what elements in the collection are hidden so _select() knows not to click them. which should work, _IEProperyGet() worked with form collections using other properties such as browserx and browsery just not with "visible" it just gives me an ie error. ive no clue dude Link to comment Share on other sites More sharing options...
lionfaggot Posted July 4, 2013 Author Share Posted July 4, 2013 also, if i may say, ive gotten pretty good with ie.au3 in the process of making this script. lots of things i didnt know about Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted July 4, 2013 Moderators Share Posted July 4, 2013 Are these form elements "input type=hidden"? If they are you can check that with something like: If String($oInput.type) = "hidden" Then ; it is input type=hidden Note: The visible property is only available on the browser object. Link to comment Share on other sites More sharing options...
lionfaggot Posted July 4, 2013 Author Share Posted July 4, 2013 that worked, alright man this is excellent. i have to ask why msdn documentation sucks for just about everything. i scoured for some time. how do you get your info Link to comment Share on other sites More sharing options...
lionfaggot Posted July 4, 2013 Author Share Posted July 4, 2013 microsoft explains things in a way that makes me want to kill myself Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted July 4, 2013 Moderators Share Posted July 4, 2013 This is a good starting point, but honestly I just knew from experience. 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