Jump to content

Recommended Posts

How can i get the text of a var in IUI I have this so far. Getvalue doesnt do what I want. It is from a grid in a third party app

_UIA_setVar("View Activity","Title:=View Activity;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app.0.30495d1_r9_ad1")    ;View Activity
;_UIA_setVar("oP2","Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.30495d1_r9_ad1")    ;
;_UIA_setVar("oP3","Title:=Group Type:;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.30495d1_r9_ad1") ;Group Type:
;_UIA_setVar("oP4","Title:=Delete;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.30495d1_r9_ad1")  ;Delete
;_UIA_setVar("oP5","Title:=DevExpressGrid:2;controltype:=UIA_DataGridControlTypeId;class:=WindowsForms10.Window.8.app.0.30495d1_r9_ad1")    ;DevExpressGrid:2
;_UIA_setVar("oP6","Title:=grdActivityView_ActViewGrdAttachments-XGDataRow0;controltype:=UIA_DataItemControlTypeId;class:=")    ;grdActivityView_ActViewGrdAttachments-XGDataRow0

;~ $row0attachment=_UIA_getObjectByFindAll("Value=Email#Row=0Column=FileName.mainwindow", "title:=Value=Email# Row=0 Column=File Name;ControlType:=UIA_TextControlTypeId", $treescope_subtree)
_UIA_setVar("row0attachment","Title:=(Value=(.*)# Row=0 Column=File Name);controltype:=UIA_TextControlTypeId;class:=Email") ;ControlType:=UIA_TextControlTypeId;classname:=Email")


_UIA_setVar("row0filetype","Title:=Value=((.*)# Row=0 Column)=Ext;controltype:=UIA_TextControlTypeId;class:=MSG") ;ControlType:=UIA_TextControlTypeId;classname:=(.*)")
_UIA_setVar("row1filetype","Title:=Value=((.*)# Row=0 Column)=Ext;controltype:=UIA_TextControlTypeId;class:=MSG") ;ControlType:=UIA_TextControlTypeId;classname:=(.*)")
_UIA_setVar("row2filetype","Title:=Value=((.*)# Row=0 Column)=Ext;controltype:=UIA_TextControlTypeId;class:=MSG") ;ControlType:=UIA_TextControlTypeId;classname:=(.*)")

_UIA_Action("View Activity","highlight")
_UIA_Action("View Activity","setfocus")

_UIA_action("row0attachment","highlight")
_UIA_action("row0attachment","click")

_UIA_action("row0filetype","highlight")

_UIA_Action("row0filetype", "getvalue")

 

Edited by milkmoron
Link to post
Share on other sites

I have not wrapped grid functions so you have to get the grid pattern. First 10 examples show how to get patterns. Show what inspect.exe gives for defined interfaces of your control and hopefully it supports an pattern to get cell by row column. 

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