mIRC Homepage
Posted By: Skeletor playing a sound for every pvt msg? - 25/03/06 02:23 PM
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?
Posted By: Skeletor Re: playing a sound for every pvt msg? - 25/03/06 02:31 PM
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  
Posted By: RusselB Re: playing a sound for every pvt msg? - 25/03/06 04:14 PM
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?
Posted By: Skeletor Re: playing a sound for every pvt msg? - 25/03/06 05:40 PM
the .wav is only played on those two occations, the sound byte is about 0.3 seconds long.
Posted By: MikeChat Re: playing a sound for every pvt msg? - 25/03/06 08:41 PM
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
Posted By: Skeletor Re: playing a sound for every pvt msg? - 29/03/06 03:50 PM
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?
© mIRC Discussion Forums