- Amazingly enough...it did. The screen hadn't finished drawing yet,
but the script was feeding in commands and the screen did everything
it was suppose to when it finished drawing (accepted a double-click on
a grid that brought up another window). Of course the test I did
was mild, so I'll hold off on the celebrations for a little while.
Would still like to see it wait until the screen finishes drawing
before continuing on the the script, just to be safe. But I'll work
--- In firstname.lastname@example.org, "Piotr Kaluski" <pkaluski@p...> wrote:
> Try WaitForReady
> http://www.piotrkaluski.com/files/winguitest/docs/ch09s90.html .
> Let me know if it worked.
> --- In email@example.com, "brentje" <brentje@y...> wrote:
> > Hi
> > I was wondering if there was function or something to wait until a
> > particular window, or a particular .Net form or object in my case,
> > the active window? With the software I'm testing, many forms are
> > of the main form and don't have their own window. So WaitWindow and
> > WaitWindowLike don't see them. And often there are forms that are
> > hidden but loaded. Since they exist, WaitWindow and WaitWindowLike
> > will always fire. And these problems cause the script to lock, or
> > feed actions in before the form I want is loaded. I tried putting a
> > loop in to check until the window I want to play the script on is
> > foreground window, but this doesn't cover everything and sends the
> > usage through the roof.
> > I'm a fairly competant programmer, so even if someone could point me
> > in right direction on how to build my own function to do this, it
> > would be helpful.
> > Thanks
> > Brent