现在要做一个启动外部应用程序,然后模拟点击该外部程序的button的程序.
我准备用先ShellExecute, 然后FindWindow和FindWindowEx来找这个button, 然后SendMessage来模拟点击.
但用ShellExecute怎么判断它是否已经完全启动好了呢.
难道只能用Sleep(2000)这种方法吗?