<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Saturday, November 05, 2005, 8:53 PM -->
<!-- MuClient version 3.68 -->

<!-- Plugin "jfw" generated by Plugin Wizard -->

<muclient>
<plugin
   name="wineyes"
   author="Tyler Spivey"
   id="f4a3e103c1d8715efa157b24"
   language="VBscript"
   purpose="speaks incoming text using wineyes."
   date_written="2005-11-05 20:53:14"
   requires="3.68"
   version="1.0"
   >

</plugin>


<!--  Get our standard constants -->

<include name="constants.vbs"/>

<!--  Triggers  -->
<aliases>
  <alias
   match="tts_stop"
   enabled="y"
   send_to="12"
   sequence="100"
  >
<send>jfwObject.Silence</send>
  </alias>
  <alias
   match="tts_interrupt *"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>jfwObject.Silence
jfwobject.SpeakString "%1"</send>
  </alias>
<alias
   match="tts_note *"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>jfwObject.SpeakString "%1"</send>
  </alias>
  <alias
   script="togglespeaking"
   match="tts"
   enabled="y"
   group="speech"
   omit_from_command_history="y"
   omit_from_log="y"
   omit_from_output="y"
   sequence="100"
  >
  </alias>
</aliases>

<triggers>
</triggers>

<!--  Script  -->


<script>
<![CDATA[

dim jfwobject
dim speak 'do we want to speak?
sub toggleSpeaking (name, line, wc)
if speak = 1 then
speak = 0
jfwobject.SpeakString "Incoming text will not be read."
else
speak = 1
jfwobject.SpeakString "Incoming text will now be read."
end if
end sub

sub OnPluginInstall
set jfwobject = CreateObject("GWSpeak.Speak")
jfwobject.SpeakString "window eyes  speech is ready"
speak = 1

end sub
sub OnPluginScreendraw (t, log, line)
if (t = 0 or t = 1)  and speak = 1 then
jfwobject.SpeakString line
end if
end sub
sub OnPluginBroadcast (msg, id, name, text)
if msg = 887 then
jfwobject.SpeakString text
elseif msg = 8874 then
jfwobject.silence
jfwobject.SpeakString text
end if
end sub
]]>
</script>


</muclient>
