dranzer006 Posted January 18, 2021 Share Posted January 18, 2021 Hi, I'm working with a controlbox that has Edit boxes with same class name/automation id. there are total 5 Editbox (Highlighted ) Would it be possible to find next element in treeview that's below textbox ? I can't iterate through the list, As some edit boxes get disable when other properties are changed. Thanks Link to comment Share on other sites More sharing options...
Nine Posted January 18, 2021 Share Posted January 18, 2021 Use something like this : Local $pRawViewWalker, $oRawViewWalker $oUIAutomation.RawViewWalker( $pRawViewWalker ) $oRawViewWalker = ObjCreateInterface( $pRawViewWalker, $sIID_IUIAutomationTreeWalker, $dtagIUIAutomationTreeWalker) Local $pUIElement, $oUIElement $oRawViewWalker.GetNextSiblingElement( $oText, $pUIElement ) $oUIElement = ObjCreateInterface( $pUIElement, $sIID_IUIAutomationElement, $dtagIUIAutomationElement ) Where $oText is the object before the one you are looking for... dranzer006 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...
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