Hi Allen,
Thanks for your quick response.
I created a new project and copy WaitAliasChild example to create a new function and added Notepad.exe to Aliases. An exception happen at line 6 without waiting for 10 seconds.
function TestNotePad()
{
// Specifies the Alias object
var AliasObj = Aliases["notepad"];
// Checks whether the Font window has appeared within 10 seconds
if (AliasObj["WaitAliasChild"]( "dlgFont", 10000 )["Exists"]() )
Log["Message"]("The Font window has appeared")
else
Log["Error"]("The Font window has not appeared.");
}
Please see attached images for details.
Thanks