Jump to content

Find Edit-textbox below text


Recommended Posts

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

Screenshot 2021-01-18 195409.png

Untitled.jpg

Link to comment
Share on other sites

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...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...