Well, that worked Larry! I got the full path with the nested levels, easy enough to parse. Sorry, I just picked up AutoIT today and couldn't find an answer on the forums or the help file, there's just too much info available! Thanks again!
I selected an item in the GroupTree control, then ran this this code:
WinActivate("Some Enterprise App")
WinWaitActive("Some Enterprise App")
$var = ControlGetText("[CLASS:CompanyName.GroupTree]", "", "CompanyName.GroupTree1")
$var2 = ControlGetFocus("[CLASS:CompanyName.GroupTree]", "")
MsgBox (0, "Results", "Var: " & $var & @LF & "Var2: " & $var2)
Both variables came up empty.
I thought sending keystrokes would do the opposite of getting info from the control.....If it does help to use these functions to return data, do you have a generic example? thanks Larry
I have an enterprise application that needs some automation. It appears to have non-Microsoft controls. I want to get the currently selected item in a treeview-like control. From Window Info:
CLASS: CompanyName.GroupTree
Instance: 1
ClassNameNN: CompanyName.GroupTree1
ID: 1006
This treeview-like control lists the groups in the application, and can have multiple sub levels of nested groups. If there is no way to easily pull the selected item from this control, how could I loop through all child controls and poll each one to see if its selected? Thanks for looking.