mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2005
Posts: 2
M
Bowl of petunias
OP Offline
Bowl of petunias
M
Joined: Feb 2005
Posts: 2
I am new to MIRC so please don't shout if I am asking a totally noob thing. I'd like MIRC to alert me with a sound when a certain small sentence is said,

eg Sweet Mary says

How would I go about doing this?

Many thanks for your time,

Marie

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Highlight way

Go to Alt+O > Irc > Highlight, type "Sweet Mary says" in the topmost editbox, click on the No Sound button twice and it will let you select a file to play, make sure "Message Only" is in the "Match on" combo box and configure any of the other options if you want to.

Script way

This will react when "Sweet Mary says" is said.

Code:
on *:text:Sweet Mary says:#:{ splay <path to file.wav> }


This will react when "Sweet Mary says" is said anywhere in a sentence.

Code:
on *:text:*Sweet Mary says*:#:{ splay <path to file.wav> }


Put either of the above (Not both) in a new file in remote (Alt+R > File > New).

Make sure you change <path to file.wav> to the path to the sound you want to play, if the filename has spaces you must surround it in quotes, eg: c:\my music\example.mp3 should be "c:\my music\example.mp3".


New username: hixxy
Joined: Feb 2005
Posts: 2
M
Bowl of petunias
OP Offline
Bowl of petunias
M
Joined: Feb 2005
Posts: 2
It says 'separate words with commas' in the topmost highlight edit box so I have been doing Sweet, Mary, says. Thanks very much for your input - most appreciated :P


Link Copied to Clipboard