hunternemitz
11 years agoNew Contributor
Checking for existence of a window without incurring the auto-wait
In my tests, there is one point where I am looking for a dialog pop-up.
If AliasObj.WaitAliasChild("dlgImport").Exists then
The problem is that it incurs the auto wait timeout (which for me is long because load times in my program are sometimes very lengthy).
Is there a way check for the existence of the window, but have it work something like this?...
do while (True)
if AliasObj.WaitAliasChild('dlgImport").Exists then exit do
else
Delay(2000)
loop
Essentially having it loop until it find the dialog (to allow for dynamic waiting, as the time it takes for the pop up to appear is not consistent).
If AliasObj.WaitAliasChild("dlgImport").Exists then
The problem is that it incurs the auto wait timeout (which for me is long because load times in my program are sometimes very lengthy).
Is there a way check for the existence of the window, but have it work something like this?...
do while (True)
if AliasObj.WaitAliasChild('dlgImport").Exists then exit do
else
Delay(2000)
loop
Essentially having it loop until it find the dialog (to allow for dynamic waiting, as the time it takes for the pop up to appear is not consistent).