Make ATEasy Wait until WinExec Application/Process Completes

Knowledge Base Article # Q200035

Read Prior Article Read Next Article
Summary In ATEasy 3.0 build 54b and above, WinExec returns a true handle. For ATEasy 3.0 build 54a and below, use FindWindow.
  
Login to rate article
Solution:

In ATEasy 3.0 build 54b and above, WinExec returns a true handle.

hHandle=WinExec(..)

WaitForSingleObject(nHandle)  ! wait until app is completed

….


For ATEasy 3.0 build 54a and below, you must use FindWindow (user32) on the caption of you application or the class of its main window (using spy):

WinExec(...)

while FindWindow(...)
endwhile

Article Date 9/25/2002
Keywords ATEasy, WinExec(), WaitForSingleObject()


Login to rate article

Read Prior Article Read Next Article
>