Forum Discussion
tristaanogre
9 years agoEsteemed Contributor
I don't know about Python scripting... but here's how I do it in JavaScript... you should be able to translate:
var counter = 0;
var maxCount = 60;
while ((!Aliases.MyApp.WaitAliasChild('myObject', 500).Exists) && (counter < maxCount)){
counter++;
}
This will wait max 30 seconds (500 ms executed 60 times = 30000ms). Convert this to a function where you pass in the parent object, the alias name, and a max wait time and you've got a nice little routine.