This project is read-only.

Automating from within an application

Jul 20, 2009 at 8:46 AM
Edited Jul 20, 2009 at 8:47 AM

Is it possible to automate from within a running app, as oppsed to lauching or attaching to another app?

I have a simple WPF app, and using a static method call, I do the following:

application =


window = (Core.UIItems.WindowItems.Window)application.GetWindow("Window1");


the call to GetWindow never returns.

what am i doing wrong?


Jul 24, 2009 at 5:34 AM

after initialising application, try


and give InitializeOption.WithCache/NoCache in GetWindow function call.

Jul 31, 2009 at 11:16 AM

Have you tried using a different thread to execute your static method?