I am getting an error ActiveX component can't create object when running a script on a workstation. I installed SAPI Voice on the server and I do not get an error. Even a script not running through Sage on that workstation gets an Error 88 Activex component cannot create object. They want a noise, not a message box under certain conditions. That part of the script works, just not the sound or voice. Thank you in advance. Set Voice = CreateObject("SAPI.SpVoice") Words = InputBox("What do you want me to say?") Voice.Speak(Words) or strSoundFile = "C:\windows\Media\Notify.wav" Set objShell = CreateObject("Wscript.Shell") strCommand = "vmplayer /play /close " & chr(34) & strSoundFile & chr(34) objShell.Run strCommand, 0, False Wscript.Sleep 1000 Msgbox "Hello"
↧