mIRC Homepage
Posted By: MauS on *:NOTICE:*:#: not working =( What's wrong? - 05/05/03 10:44 PM
Code:
on *:NOTICE:*:#:{
  /splay -cq Sounds\ChatAction.wav
  /window -g2 $chan
  /flash
/echo Hey?
}


It's not even echoing on notices confused

How to make this work?
1st you have the wrong command to open a window
2nd you have not set the command line to add a msg
to the custom window.

Code:
  [color:red]
 on *:NOTICE:*:#:{ 
 /splay -cq Sounds\ChatAction.wav 
 /window -g2 @chan
 /flash
 aline @chan $1- 
}
 [/color]  
Quote:
1st you have the wrong command to open a window

That window is already opened

Quote:
2nd you have not set the command line to add a msg
to the custom window

$chan refers to the window this notice was caught. It will be replaced with the channel name.

Executing the command /splay -cq Sounds\ChatAction.wav akes the sound, but in this on NOTICE it doesn't.

Why?

The whole script isn't executed
so ur trying to manipulate whats added to a normal channel window by using /window command? im kinda not understanding ur problem ..... another thing ..... if your sound isnt playing does it exist in that directory ( a possible typo )
and last but not least mirc cannot be the active application to make flash work ..... according to the help file now again im not sure if all this helps or not cause im confussed on what it is your trying to do exactly
on *:NOTICE:*:#:{
/splay -w Sounds\ChatAction.wav
/window $+(@,$chan)
/flash
/echo -ti2 $+(<,$nick,>) $1-
}
i do agree your code would work perfectly to echo the response to a custom window ..... but im not even sure thats what the original poster is trying to do ... i hope ur post helps them as i am lost on what they are tryin to accomplish if what your post does isnt what they want
Do you have any other on notice events that might conflict?
I'm trying to say that not depending on what commands are used, they are not performed.

Nimue understood me laugh
No, it's the only on NOTICE script in my mIRC
I tested this and it works for me.
This will only work for a notice $chan and not for a notice Nick
Now as for the Playing the wav file it must be in the Sounds Directory.

Code:
 [color:red] 
on *:NOTICE:*:#:{
  /splay $mircdirSounds\ChatAction.wav
  /window $+(@,$chan)
  /flash
  //aline $+(@,$chan) $+(&lt;,$nick,&gt;) $1-
}
 [/color]   
If you use Iline instead of aline it will insert the most recent notices at the top of the window

/iline $+(@,$chan) 1 $+(<,$nick,>) $1-

If you use $+(@,$chan) instead of @Chan or @Notice
you will get a custom window for each channel you are in where a notice has been sent. You can insert $chan to identify what channel the notice was originated in.
Just for the record, you aren't trying to trigger this yourself, by sending a channel notice, are you? (because it will not trigger from your own notices)
Oops... blush I was triggering this from a clone mIRC. Launched two mIRC's in one network and was sending notice from one to the other...
Well, the # makes that a channel notice event. (/notice #channel text)
on *:NOTICE:*:#:{
Oh... Now i see. Thanks for your help, Nimue »^_^«
NP smile
BTW for a private notice "on *:notice:*:?:{" event, $chan would be void, it would need to be $nick, and you'd need to ensure the query window is open or 'wondow -g2 $nick' will error smile
And if a private notice was caught in a channel window, can i make it flash?

Oh, private notices always come to an active window, and it's no need to flash it, right? laugh
Happy 500th post, Nimue.
© mIRC Discussion Forums