Jump to content
marschall88

_UIA_getObjectByFindAll does not find correct object

Recommended Posts

Hi,

I need to get a object but function _UIA_getObjectByFindAll is getting first object in the list (edit)

Also, that object is a gridView, how can I get data from that object?

Local $oP5=_UIA_getObjectByFindAll($UIA_oDesktop, "Title:=StockBase POS 2033.797;controltype:=UIA_WindowControlTypeId;class:=ShellWindow", $treescope_children)
    _UIA_Action($oP5,"setfocus")
    Local $oP4=_UIA_getObjectByFindAll($oP5, "Title:=;controltype:=UIA_PaneControlTypeId;class:=MDIClient", $treescope_children)
    _UIA_Action($oP4,"setfocus")
    Local $oP3=_UIA_getObjectByFindAll($oP4, "Title:=;controltype:=UIA_WindowControlTypeId;class:=DocAppWindow", $treescope_children)
    _UIA_Action($oP3,"setfocus")
    Local $oP2=_UIA_getObjectByFindAll($oP3, "Title:=;controltype:=UIA_PaneControlTypeId;class:=WndAppWindow", $treescope_children)
    _UIA_Action($oP2,"setfocus")
    Local $oP1=_UIA_getObjectByFindAll($oP2, "Title:=;controltype:=UIA_PaneControlTypeId;class:=#32770", $treescope_children)
    _UIA_Action($oP1,"setfocus")
    Local $oP0=_UIA_getObjectByFindAll($oP1, "Title:=;controltype:=UIA_PaneControlTypeId;class:=_VOCustomControl", $treescope_children)
    _UIA_Action($oP0,"setfocus")

image.png.84689533f69f1b7e261d97388ae112e1.png

 

 

Edited by marschall88

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...