[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Sound Trigger
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Sound Trigger

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

Posted by Evo42   (2 posts)  [Biography] bio
Date Sun 03 Dec 2017 08:19 PM (UTC)

Amended on Sun 03 Dec 2017 08:52 PM (UTC) by Evo42

The objective here is to avoid using the built in sound button. It's nice and it works, but I'm trying to just make the trigger itself run with a sound function.

Such as Sound ("test.wav")

The trigger I'm using is simply "East" and the SendTo (set as script) is Sound ("test.wav")

Any time this is done, regardless of where the sound file is, it just plays the general alert that windows comes with. Is there a specific place that MUSHclient is looking up sounds from? The objective is that any user that is given these triggers can be given the same sound files for their own personal use. Without the need of having them in the same directory, if possible.

Me, I'm a loon. I keep my MUSHclient folder on my desktop, just as an example. The sound I'm trying to use is in the sound folder for this, however.

This is MUSHClient 4.84 that I am using currently.
[Go to top] top

Posted by Nick Gammon   Australia  (21,674 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 03 Dec 2017 08:29 PM (UTC)
Check the return code from the Sound function.


check (Sound ("test.wav") )

You might get a code indicating the sound file isn't in a supported format. You can use Audacity (or ffmpeg) to change codecs.

Template:function=Sound Sound

The documentation for the Sound script function is available online. It is also in the MUSHclient help file.

Also check out the PlaySound function.

Template:function=PlaySound PlaySound

The documentation for the PlaySound script function is available online. It is also in the MUSHclient help file.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Evo42   (2 posts)  [Biography] bio
Date Reply #2 on Sun 03 Dec 2017 08:56 PM (UTC)
Huh. I was able to do PlaySound, I just had to remove the parenthesis from either end. That solves that problem. Hehe.

[Go to top] 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.


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

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]