mIRC Home    About    Download    Register    News    Help

Print Thread
playing a sound for every pvt msg? #145628 25/03/06 02:23 PM
Joined: Feb 2005
Posts: 185
S
Skeletor Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Feb 2005
Posts: 185
Hi there,

Code:
 #querysound on
on *:OPEN:*: { splay query.wav }
#querysound end 


I would like to change it to when every there is a msg posted to me in pvt regardless of it being the first one it plays that sound clip. just like msn does...

Any ideas?


sub-zero.homeip.net:6667

Re: playing a sound for every pvt msg? #145629 25/03/06 02:31 PM
Joined: Feb 2005
Posts: 185
S
Skeletor Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Feb 2005
Posts: 185
I have got this so far, but i plays the sound all the time even when the window is active...

Code:
#querysound on
on *:OPEN:*: { splay query.wav }
on *:TEXT:*:?: {
  if ( $nick == $me ) return  {
    splay query.wav 
    unset %whispered
  }
}
#querysound end  

Last edited by Skeletor; 25/03/06 02:35 PM.

sub-zero.homeip.net:6667

Re: playing a sound for every pvt msg? #145630 25/03/06 04:14 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
You can remove that if statement, since it's impossible for you to initiate your own on text events.

Have you checked to see if maybe the playing of query.wav is overlapping with another command to play the same wave file? How much time does it take for the wave file to play once?

Re: playing a sound for every pvt msg? #145631 25/03/06 05:40 PM
Joined: Feb 2005
Posts: 185
S
Skeletor Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Feb 2005
Posts: 185
the .wav is only played on those two occations, the sound byte is about 0.3 seconds long.


sub-zero.homeip.net:6667

Re: playing a sound for every pvt msg? #145632 25/03/06 08:41 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
try this
Code:
on *:text:*:?:{
  if ($query($nick) != $active) { echo -a moo }
}
on *:action:*:?:{
  if ($query($nick) != $active) { echo -a moo }
}


I didnt have the sound, so you just change the echo to your splay command

Re: playing a sound for every pvt msg? #145633 29/03/06 03:50 PM
Joined: Feb 2005
Posts: 185
S
Skeletor Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Feb 2005
Posts: 185
thats great, thank you, now is it possible to get that window to blink as well, i know that it does it by default in mirc, but i cant seem to get it to work at all. any ideas?


sub-zero.homeip.net:6667