MathCad 15
I have been running some long Monte carlo Sims - each takes about 20mins, so I go an do something else while it is running.
What I would like to be able to do is generate a sound when it has finished so I can extract the results and start it off on the next one.
Can't see any way to do it - ideas anyone ??
In the olden days when we used "Basic" a string with "ctrl G" would do it - such is progress....
Ian
Solved! Go to Solution.
You could try and use a scripted component. Have a look at Richards collection.
http://communities.ptc.com/docs/DOC-1071
Mike
I have extracted the section I was talking about.
Mike
Hi Mike - yep that does the job - many thanks
Ian
No problem at all. I only passed the component, the credit must go to Richard
Mike
Thanks Richard !
The following VBscript will play a selected .wav sound file instead of just the beep. It should be obvious where to place it in the previous beep componenet.
Sub BeeperEvent_Exec(Inputs,Outputs)
strSoundFile = "C:\My Documents\sounds\ring.wav"
Set objShell = CreateObject("Wscript.Shell")
strCommand = "sndrec32 /play /close " & Chr(34) & strSoundFile & Chr(34)
objShell.Run strCommand, 0, True
End Sub