Hi,
Im opening a external application and i must wait until it has finish processing before closing it...
I open the application thi way:
>dblProgramTaskID = Interaction.Shell("C:\Program >Files\Adobe\Acrobat 4.0\Distillr\AcroDist.exe >C:\WINNT\Temp\RequestPreview.txt", >VbAppWinStyle.vbMinimizedFocus)
the only way I have to wait is to use the following to do a five seconds pause:
>waiting = Application.Wait(Now + TimeValue("0:00:05"
)
then after the application is closed this way:
>dblProgramTaskID = FindWindow(vbNullString, "Acrobat Distiller"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
>Call SendMessage(dblProgramTaskID, WM_CLOSE, 0, ByVal 0&)
Is there a way to wait until the application has finished his procesing with something like a SendMessage?
thanks
Im opening a external application and i must wait until it has finish processing before closing it...
I open the application thi way:
>dblProgramTaskID = Interaction.Shell("C:\Program >Files\Adobe\Acrobat 4.0\Distillr\AcroDist.exe >C:\WINNT\Temp\RequestPreview.txt", >VbAppWinStyle.vbMinimizedFocus)
the only way I have to wait is to use the following to do a five seconds pause:
>waiting = Application.Wait(Now + TimeValue("0:00:05"
then after the application is closed this way:
>dblProgramTaskID = FindWindow(vbNullString, "Acrobat Distiller"
>Call SendMessage(dblProgramTaskID, WM_CLOSE, 0, ByVal 0&)
Is there a way to wait until the application has finished his procesing with something like a SendMessage?
thanks