PDA

View Full Version : shellLaunch has to wait for a window to close...


48design
02-20-2007, 03:31 PM
Hi!

I have a problem. My script opens a commandline tool/DOSbox via shelllaunch that edits exif data of TIFs and after that stitches these imags together with another commandline tool.

The problem: the last image that gets its exif data edited has still the DOSbox open when the stitching tool pops up to stitch all the images and its exif data is not yet edited!

Is there a solution for this? Maybe to pause the script for some seconds or better to wait until the exif tool has finished???

thank you!

Blue
02-20-2007, 11:45 PM
Try the Timer to force delay.

48design
02-21-2007, 08:11 AM
Thx, I'll give it a try. If there was a special function to wait for the window to close, that would be cool...

Dmaxer
02-21-2007, 10:12 AM
a better way to do this is to use the AVG extenion plugin , you can get it from script spot , that will give you a command like shelllaunch but with the option to pause the script untill the dos box has done what it needs to do .

heres the options forthe command
HiddenDOSCommand <command string to execute> [startpath:unsupplied] [prompt:unsupplied] [donotwait:false]

so I used it like this ;
HiddenDOSCommand "M1.exe -t temp.mid Data.txt" startpath: pathcmd prompt:"Processing" donotwait:false

48design
02-21-2007, 12:04 PM
wow, that is cool, thank you! :o)

CGTalk Moderation
02-21-2007, 12:04 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.