Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
COM error Class not registered
#6
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     Help - how to add the trigger to the macro
Code:
Copy      Help
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


Messages In This Thread
COM error Class not registered - by Davider - 02-02-2024, 12:37 AM
RE: COM error Class not registered - by Gintaras - 02-02-2024, 06:35 AM
RE: COM error Class not registered - by Gintaras - 02-02-2024, 07:59 AM
RE: COM error Class not registered - by Davider - 02-02-2024, 08:07 AM
RE: COM error Class not registered - by Gintaras - 02-02-2024, 08:16 AM
RE: COM error Class not registered - by Davider - 02-02-2024, 12:01 PM
RE: COM error Class not registered - by Davider - 02-03-2024, 01:35 AM
RE: COM error Class not registered - by Gintaras - 02-03-2024, 05:50 AM
RE: COM error Class not registered - by Davider - 02-03-2024, 11:13 AM
RE: COM error Class not registered - by Gintaras - 02-03-2024, 12:33 PM
RE: COM error Class not registered - by Davider - 02-03-2024, 09:30 PM
RE: COM error Class not registered - by Gintaras - 02-04-2024, 05:07 AM
RE: COM error Class not registered - by Davider - 02-06-2024, 11:04 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)