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.
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 4:18:28 PM
Keywords ATEasy, WinExec(), WaitForSingleObject()

0 ratings | 0 out of 5
Read Prior Article Read Next Article