Handle ActiveX event in VBScript

The shell VBScript can handle ActiveX event as well. The following is an example on how to handle the events from our Active TTS  component.

 Save it and click to run on your desktop after installing our component.


Dim tts
Set tts = WScript.CreateObject(“TTSObj.TextToSpeech.1″, “tts_”)
tts.Speak “Hello world”, 0
sub tts_OnTTSStart
msgBox “start”
end sub

sub tts_OnTTSEnd
msgBox “end”
end sub