cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

I've finished sound

Ian1
1-Newbie

I've finished sound

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

1 ACCEPTED SOLUTION

Accepted Solutions

I have extracted the section I was talking about.

Mike

View solution in original post

6 REPLIES 6
MikeArmstrong
5-Regular Member
(To:Ian1)

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

MikeArmstrong
5-Regular Member
(To:Ian1)

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

Announcements