views:

22

answers:

0

I'm using Microsoft UI Automation to test an application, but I'm using a batch file to launch that application.

When I run process.WaitForIdle(100), it fails because the batch file has no graphical interface. How can I react to the application being launched and find the process spawned? (I may already have a similar window open so I can't pick it up by the process or window name).