Forum Discussion

MichaelP's avatar
MichaelP
Contributor
14 years ago

WaitAliasChild WaitTime versus WaitWindow WaitTime

I'm curious as to why

when WaitWindow Timeout = -1, the wait time is Infinite but

when WaitAliasChild WaitTime = -1, the waiting time is that specified by the Auto-WaitTimeout project setting.



In a specific context in one of my scripts, I have to use WaitAliasChild instead of WaitWindow, but it would be better to wait indefinitely as I can't predict how long to wait. It's not really a problem as I just specify something ridiculous like 1000000, but it would make more sense if -1 = Infinite like it does with the WaitWindow method.



Why does the behaviour of the WaitWindow and WaitAliasChild need to be different?



Thanks



Michael

  • Hi Michael,





    This is an issue with the WaitAliasChild method, but it cannot be corrected at the moment due to possible compatibility problems with the existing scripts.