mIRC Home    About    Download    Register    News    Help

Print Thread
#21449 28/04/03 11:39 PM
Joined: Apr 2003
Posts: 22
G
gsandan Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Apr 2003
Posts: 22
Is there a way to make this kind of script:

When someone replies to a PM make a sound/beep.
Like MSN Messenger: Someone replies there's a sound.

Anyone know how to do this?


#21450 28/04/03 11:51 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
on 1:TEXT:*:?: {
if ($active != $nick) /splay -w dir\sound.wav
}


-KingTomato
#21451 29/04/03 12:45 AM
Joined: Apr 2003
Posts: 22
G
gsandan Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Apr 2003
Posts: 22
How do I do this code? Step-by-step tutorial plz!

#21452 29/04/03 01:45 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
First, open mirc and press alt+R. When the window appears, paste the code i made above into that window. Click okay at the bottom.

Next, locate the file you want to play when you get a msg on your computer. Right click on it, and select "copy". Next, open mirc and type /run sounds\ This will open your mirc sounds directory. Paste the file into this folder by right cliking in the window, and select "paste". Now, right click that file and rename it (if it isn't already) to a file with no spaces (Just makes life easier).

Next, close the folder window, and re-open mirc. Press alt+r once more, and find where it says dir\sound.wav Rename this to sounds\[color:green]file_you_just_renamed.wav[/color] Click okay, and Viola! grin


-KingTomato
#21453 29/04/03 01:56 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
To save having to copy the wavfile, just use the path to the file wherever it is...
Code:
on *:text:*:?:{
  if $active != $nick { splay E:\Waves\The Message Sound.wav } 
}

#21454 29/04/03 02:07 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I was thinking that, but from what it looks like, but I figured that with the hint of inexperience (no offence), the next question would be "it doesn't play--thats 'cause file has spaces, use quotes.." etc.. Anyways, its not hard to move a file. >:D


-KingTomato
#21455 29/04/03 02:12 AM
Joined: Apr 2003
Posts: 22
G
gsandan Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Apr 2003
Posts: 22
But the script only works when the PM window is not open. How can I play the sound with the windows OPEN AND CLOSED?

#21456 29/04/03 02:14 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
get rid of "$active != $nick"

on 1:TEXT:*:?: {
/splay -w dir\sound.wav
}


-KingTomato
#21457 29/04/03 02:14 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
And remember to change the directory too..


-KingTomato
#21458 29/04/03 02:24 AM
Joined: Apr 2003
Posts: 22
G
gsandan Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Apr 2003
Posts: 22
Thanks! laugh smile

#21459 29/04/03 02:40 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
NP grin


-KingTomato

Link Copied to Clipboard