CHE-WEI WANG
2008.08.09

Rhinoscript Sound Alert

PublishedAug 9, 2008
Filed underRhinoScript  ·  Software

Make your scripts beep at you when they’re done.

add the following code at the end of “sub main”, right before “end sub”


	'BEEP when done
	Dim  objShell, 	   strCommand

	'change the path to any .wav file of your choice
	Dim strSoundFile : strSoundFile = "C:\WINDOWS\Media\Notify.wav"

	Set objShell = CreateObject("Wscript.Shell")
	strCommand = "sndrec32 /play /close " & chr(34) & strSoundFile & chr(34)
	objShell.Run strCommand, 0, True

← All works