Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
COM error Class not registered
#2
ChatGPT just damaged the code.

If you want to use Interop.UIAutomationClient from nuget, here is an example.
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);

QM example.
Code:
Copy      Help
typelib UIAutomationClient {944DE083-8FB8-45CF-BCB7-C477ACB2F897} 1.0
UIAutomationClient.CUIAutomation8 automation._create
UIAutomationClient.IUIAutomationElement element=automation.GetFocusedElement
out element.CurrentClassName


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)