I tried to implement it using QM code, but still no luck.
The output result will not contain 'Caret'
However, success is very close
Function getISECaretPos
Trigger Ax
The output result will not contain 'Caret'
However, success is very close
Function getISECaretPos
Trigger Ax
UIA.CUIAutomation u._create
UIA.IUIAutomationElement t=u.GetFocusedElement; out t.CurrentClassName
UIA.IUIAutomationElement e
UIA.IUIAutomationTreeWalker walker=u.RawViewWalker
e=walker.GetFirstChildElement(t)
e=walker.GetNextSiblingElement(e)
out e.CurrentControlType ;;Edit = 50004,Custom = 50025
out e.CurrentAutomationId ;;must Contains("Caret")
UIA.tagRECT r
r=e.CurrentBoundingRectangle
out r.left
out r.top
out r.right
out r.bottom