Forum Discussion
YMinaev
14 years agoStaff
Hi,
You can use the script below:
See the WaitProcess Method and WaitWindow Method help topics for more information.
You can use the script below:
function Test()
{
var p = Sys.WaitProcess("<ProcessName>", 10000);
if (p.Exists)
{
Log.Message("The application is launched");
var w = p.WaitWindow("<WndClass>", "<WndCaption>", 0, 10000);
if (w.Exists)
{
Log.Message("The window exists");
}
else
{
Log.Message("The window doesn't exist")
}
}
else
{
Log.Message("The application is not launched.");
}
}
See the WaitProcess Method and WaitWindow Method help topics for more information.
Related Content
- 5 years ago
- 5 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago