Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ VBscript ➜ SAPI

SAPI

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Eyes   USA  (4 posts)  Bio
Date Tue 23 Jun 2009 03:48 PM (UTC)
Message
i installed the sapi-speaker plugin for MUSH client and it worked, yet it is reading me everything on the screen, not just the tells... how can i fix this???
Top

Posted by Mm1mark   (24 posts)  Bio
Date Reply #1 on Tue 23 Jun 2009 04:50 PM (UTC)
Message
http://www.gammon.com.au/forum/bbshowpost.php?id=6586
http://www.gammon.com.au/forum/bbshowpost.php?id=7767

here are a couple i found if you haven't had a chance to read them yet
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #2 on Tue 23 Jun 2009 09:44 PM (UTC)
Message
The brief answer is that the function OnPluginScreendraw inside the plugin speaks every line drawn. You need to delete or comment-out those lines if you don't want that. In other words, omit from "sub OnPluginScreendraw" to "end sub".

Then, make a trigger that matches what you want to hear (eg. chats) and speak them instead. If you are using the plugin at:

http://mushclient.com/mushclient/plugins/sapi.xml

Then you would need to do this in a trigger, when using "send to script" in the trigger configuration:


jfwobject.Speak "%0", 1


The wildcard %0 represents the whole matching line, thus as long as the trigger matches, it will be read out.

The trigger needs to be in the plugin, not the main world file. You can make a trigger in the GUI interface, and then copy and paste it as described at: http://mushclient.com/copying

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


16,806 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.