mIRC 5.02 Sound Events/Scripts
4/18/2007: I have no idea if the following information applies to the newest versions of mIRC, but I would think that it would unless they've really changed things around. Man, this information is ooooold. Windows 95 days, LOL. Oh well..
- Sound Card Setup Right?
- Setting up mIRC to play Sounds
- How do I play a sound to the channel?
- Auto grab/send scripts
Is your Sound Card Setup Right?
Okay, before anything else, make sure your Sound Card, Sound Card drivers , and the Sound Card mixer are configured correctly to play MIDI files (and WAV files for that matter). To check this, launch the Windows Media Player which can be found with the Accessories Group of Windows 3.X and under Programs -> Accessories -> Multimedia in Windows 95. Click on the Device menu. You should see both Sound and MIDI Sequencer listed here (among other items probably). If either one is missing, contact your Sound Card Manufacturer. If the Windows Media Player can't play it, then nothing in Windows will be able to.
If they are there, select each one and try to play a .WAV file when you select Sound and a .MID file when you select MIDI Sequencer (you should have some of these files in your C:\WINDOWS or C:\WINDOWS\MEDIA directory). You press the far-left triangular button to play the file. If it looks like it's playing (slider is moving) but you don't hear anything, check the following:
- Your speakers are plugged in, turned on (if amplified speakers), and the volume knob turned up (if amplified speakers).
- You have the WAV and/or MIDI volumes turned down or muted in the Sound Card's (or Windows 95's) mixer. If in Windows 95, double click on the little yellow speaker that is in the task bar which will bring up the Windows 95 Volume Control. Make sure the following items are turned up and not Muted: Volume Control, Wave, and MIDI. Depending on the sound card, the descriptions might be a little different. If you can't figure it out, contact your sound card manufacturer.
Setting up Sound auto request/send
Setting up mIRC 5.02 is a little bit easier as you do not have to work with a separate script file to achieve the same results. The following steps I can only guarantee with work with version 5.02, I have not looked at other versions as of yet.
First, PLEASE go to File -> Options -> Sounds tab and Uncheck the option that says Send "!nick file" as private msg. This setting really annoys me sometimes as it causes separate message windows to pop-up for each person who does it. I do tend to keep this annoyance to myself though. Leave Listen for "!nick file" get requests checked though. While you're here, make sure your WAV and MIDI paths are correct.
Next, go to Tools -> Remote. Click Listen and make sure Events has a check mark by it. If not, select it. Then, click the Remote tab if for some reason it isn't already. Add the following lines into the Remote window (be sure to change c:\soundpath on the second line to the actual topmost directory where your files are located, in my case all my files are under f:\music\midi and f:\music\wav; therefore, I would put f:\music there.):
on 1:NOSOUND:/notice $nick !DCCSEND $filename on 1:NOTICE:*!dccsend*:*:/dcc send $nick $findfile(c:\soundpath,$2,1) on 1:NOTICE:*:*:/if $1 == ! $+ $me { /dcc send $nick $findfile(c:\soundpath,$2,1) } on 1:FILERCVD:*.mid,*.wav,*.rmi:/splay $filename
Here is a description of the lines:
- This line will send a notice to someone with the format !dccsend filename.mid when you do not have that file.
- This line will respond to someone's request that has the format !dccsend filename.mid in a notice and dcc send that file to them.
- This line will respond to someone's request that has the format !yournick filename.mid in a notice and dcc send that file to them.
- This line will automatically play a Wave or MIDI file after it has been transferred to your computer by someone else.
Click on OK when done. That's it! Again, if these were your only remote events, following is how the window would look:
Now then, these are my preferences. However, other people with mIRC probably won't respond to a !DCCSEND notice and will only respond to a request that is sent into the channel as !nick filename.mid. So, you might want to use the following events instead of the above:
on 1:NOSOUND:/msg $chan ! $+ $nick $filename on 1:NOTICE:*!dccsend*:*:/dcc send $nick $findfile(c:\soundpath,$2,1) on 1:NOTICE:*:*:/if $1 == ! $+ $me { /dcc send $nick $findfile(c:\soundpath,$2,1) } on 1:FILERCVD:*.mid,*.wav,*.rmi:/splay $filename
The only difference here is line 1 which will request a file be sent to you with the format !theirnick filename.mid into the channel that the file was played.
Page last modified: Wednesday, March 11, 2015 1:36:19 AM CDT