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.
1 comment  
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()

Sebastian Titz 8/26/2024 12:22:57 AM
where is nHandle comes from, is it a typo?
0 | 0

Login to rate article

Read Prior Article Read Next Article
>