Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
COM error Class not registered
#3
The LA code uses raw function names and signatures.
UIAutomationClient changes them to make simpler.

Code:
Copy      Help
// script ""
/*/ nuget -\Interop.UIAutomationClient; /*/
using UIA = Interop.UIAutomationClient;

var uia = new UIA.CUIAutomation8Class() as UIA.IUIAutomation;
var e = uia.GetFocusedElement();
print.it(e.CurrentClassName);

var r = e.CurrentBoundingRectangle;
print.it(r.left, r.top, r.right, r.bottom);

//if you need RECT
RECT r2 = RECT.FromLTRB(r.left, r.top, r.right, r.bottom);
print.it(r2);


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