Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
COM error Class not registered
#9
Still no output results.

Macro Macro5
Trigger Ax     Help - how to add the trigger to the macro
Code:
Copy      Help
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


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: 1 Guest(s)