HudsonKane Posted March 15, 2017 Posted March 15, 2017 I am parsing the rows of a tree control, but the parent window's title is variable along the lines of Local $oP4=_UIA_getObjectByFindAll($oP5, "Title:=List: Items (1);controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.13f082a_r27_ad1", $treescope_children) the (1) may be anything, I was hoping I could partial match with "Title:=List: Items" but this does not work Is there a way to get an object based on a partial title match? Thank you
HudsonKane Posted March 15, 2017 Author Posted March 15, 2017 a note that there are multiple items that match all the other criteria, maybe I can loop through looking for a title = List: Items (
junkew Posted March 15, 2017 Posted March 15, 2017 .* should work. The udf uses regex to match FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
HudsonKane Posted March 16, 2017 Author Posted March 16, 2017 (edited) This is getting me closer and I will continue to investigate, at this point the wrong object is getting selected The selection I am using is Title:=Orders: Path/Lab (.*) The object getting selected has a title of "Deferred Orders: Path/Lab (0)" The object I am looking for has a title of "Orders: Path/Lab(1)" in this case, but 1 could be any number If I try this regedit, nothing is found "Title:=/^Orders: Path/Lab&/ (.*; Thank you for your help Edited March 16, 2017 by HudsonKane more information
HudsonKane Posted March 16, 2017 Author Posted March 16, 2017 Well, if I use a correct expression, it works! "Title:=^Orders: Path/Lab (.*); Thank you for all the help you give in these forums, I have found many solutions from your responses to other questions
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