views:

34

answers:

0

I'd like to use AutoIT's COM interface in a C# application to automate a window on a remote machine. I have code that looks like this:

var type = Type.GetTypeFromProgID("AutoItX3.Control", "my-remote-server", true);
var automater = (IAutoItX3) Activator.CreateInstance(type);
automater.DoStuff();

The problem is that the automater doesn't seem to be recognizing windows on the remote machine. Is there something I'm doing wrong? Is this even possible?