![]() |
KnowBrainer Speech Recognition | ![]() |


|
Topic Title: Waiting for executable to finish Topic Summary: I want to use Adv Scripting to launch executable and wait for the executable to finish before continuing with the script Created On: 06/11/2009 10:31 PM Status: Post and Reply |
|
![]() |
- jsarver | - 06/11/2009 10:31 PM |
![]() |
- Matt Chambers | - 06/12/2009 08:03 AM |
![]() |
- jsarver | - 07/01/2009 10:53 PM |
![]() |
- Matt Chambers | - 07/02/2009 08:28 AM |
|
|
|
|
I am using Dragon Medical 10.0. I have many very small executable files created with another scripting program that I would like to be able to run sequentially from within one dragon script. What is the most efficient way to launch the executable and then have the script wait until it successfully completes before proceeding with the rest of the script? I appreciate any help or suggestions of resources that I may wish to explore.
------------------------- Dragon Medical 10.0, XP pro sp2, Motion J3400 tablet, dual-core 1.4, 3mb L2 cache, BW900 Bluetooth with Anycom USB bluetooth dongle. |
|
|
|
|
|
|
|
|
One way to do this would be to have the scripts written with the other program display some sort of window when they are done. Then you could use the WaitforWindow technique. If you'll search this forum, you will see examples of using the WaitforWindow coding.
Of course, you could always just use a timed wait period, but that doesn't seem very interesting or efficient. ------------------------- |
|
|
|
|
|
|
|
|
I found another solution on a blog that involves writing a function that waits for the executable to finish:
http://www.mjtnet.com/blog/2009/06/04/calling-macro-scheduler-scripts-from-vbvba/
------------------------- Dragon Medical 10.0, XP pro sp2, Motion J3400 tablet, dual-core 1.4, 3mb L2 cache, BW900 Bluetooth with Anycom USB bluetooth dongle. |
|
|
|
|
|
|
|
|
Cool! thanks for sharing!
------------------------- |
|
|
|
|
FuseTalk Standard Edition v4.0 - © 1999-2013 FuseTalk™ Inc. All rights reserved.