02-03-2024, 11:13 AM
Still no output results.
Macro Macro5
Trigger Ax
Macro Macro5
Trigger Ax
out
UIA.CUIAutomation u._create
UIA.IUIAutomationElement t=u.GetFocusedElement; out t.CurrentClassName
UIA.IUIAutomationElement e
str ai
UIA.tagRECT r
UIA.IUIAutomationTreeWalker walker
int ct=t.CurrentControlType
if ct=5004
,walker=u.RawViewWalker
,rep
,,e=walker.GetFirstChildElement(t)
,,e=walker.GetNextSiblingElement(e)
,,ai=e.CurrentAutomationId
,,ct=e.CurrentControlType
,,if find(ai "Caret")>=0 and ct=50025 ;;Contains("Caret"), Custom = 50025, Edit = 50004
,,,r=e.CurrentBoundingRectangle
,,,break
out "L: %iT: %iR: %iB: %i" r.left r.top r.right r.bottom