Nicolas57 Posted June 16, 2021 Share Posted June 16, 2021 (edited) Hi community Is there a way to reverse an IE object collection ? I have such code and I know my good occurence is at very bottom of the collection I would like to spare timer by searching from the end $oDiv_Collection = _IETagNameGetCollection ( $oIE, "div" ) $Index = 0 For $oDiv In $oDiv_Collection If $bFlag == True And $oDiv.getAttribute ( "class" ) == "form-group ng-scope ng-isolate-scope" Then ExitLoop If $oDiv.getAttribute ( "id" ) == "renseignement" Then $bFlag = True $Index += 1 Next Regards Edited June 18, 2021 by Nicolas57 Link to comment Share on other sites More sharing options...
Nine Posted June 16, 2021 Share Posted June 16, 2021 Yes like this : Local $colButtons = _IETagNameGetCollection($oIE, "button") MsgBox($MB_SYSTEMMODAL, "", $colButtons.length & "/" & @error) Local $oButton For $i = $colButtons.length-1 to 0 Step -1 $oButton = $colButtons.item($i) MsgBox($MB_SYSTEMMODAL, "", $oButton.GetAttribute("class") & "/" & $oButton.innerText) ConsoleWrite ($oButton.className & @CRLF) Next Nicolas57 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Nicolas57 Posted June 18, 2021 Author Share Posted June 18, 2021 So simple with good knwoledge ... Thank you 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