We have an application that once invoked leads to 1.> 'Login' window. After the user successfully enters the credentials 2.> a splash screen is seen on the desktop. This screen is temporary and displays the database objects that are getting
loaded etc. Finally, as soon as the splash screen disappears 3.> the main application window pops up.
I can very well detect the 'Login' window with the code below.
Application application = Application.Launch(@"C:\Windows\System32\calc.exe");
Window w = application.GetWindow("Login");
What is the way to detect the main application window referred by #3 above? Is the below code the only way to get the main application window?
List windows = Desktop.Instance.Windows();
thanks & regards,