Forum Discussion
vex
14 years agoContributor
Just thought I'd throw this out there, I do this also and like to add a timer so that if it's busy I can tell how long it's been running so if its WAY over expected time I will know when looking at the log.
Set bar = Aliases.WebBrowser.pageStuff.Stuff.SomePanel.SomeControl.Etc.Etc.Etc
sTime = aqDateTime.Time
While bar.WaitAliasChild("imgBar", 500).Exists = True
eTime = aqDateTime.Time
Call Delay(1500, "Program is busy -- Elapsed Time: "& aqConvert.DateTimeToFormatStr(aqDateTime.TimeInterval(sTimeSec, eTimeSec), "%H:%M:%S"))
WEnd
eTime = aqDateTime.Time
Log.Message "The duration of process was: " & aqConvert.DateTimeToFormatStr(aqDateTime.TimeInterval(sTimeSec, eTimeSec), "%H:%M:%S")