mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2005
Posts: 185
S
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

Joined: Feb 2005
Posts: 185
S
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

Joined: Aug 2004
Posts: 7,252
R
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?

Joined: Feb 2005
Posts: 185
S
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

Joined: Dec 2002
Posts: 1,245
M
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

Joined: Feb 2005
Posts: 185
S
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


Link Copied to Clipboard