我想在 C# 应用程序中使用 AutoIT 的 COM 接口来自动化远程机器上的窗口。我的代码如下所示:
var type = Type.GetTypeFromProgID("AutoItX3.Control", "my-remote-server", true);
var automater = (IAutoItX3) Activator.CreateInstance(type);
automater.DoStuff();
问题是自动化器似乎没有识别远程机器上的窗口。有什么我做错了吗?这甚至可能吗?