The Get-UIAControlParent cmdlet returns the parent of the control that was pipelined into the cmdleet.
Start-Process calc -PassThru | Get-UIAWindow | Get-UIAButton -Name 1 | Get-UIAcontrolParent | Read-UIAControlType;

Tags: TreeScope.Parent

Last edited Jan 22, 2013 at 5:00 AM by xinliu, version 3

Comments

No comments yet.