mIRC Home    About    Download    Register    News    Help

Print Thread
#165110 22/11/06 08:56 AM
Joined: Nov 2006
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2006
Posts: 35
Hi,

I'm trying to trigger a sound upon a notice. I can trigger the sound with a text trigger, but that doesn't trigger the sound when a notice is received, Here's the code I'm using now:

Code:
  

}

on *:text:*Message*:#: { /splay notice.wav }  
on ^1:NOTICE:*: { /splay notice.wav }

}




Can anyone tell me what I'm doing wrong with the NOTICE code.

Thanks very much!

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
You forgot to indicate where the notice is to be recognized. In the on text event you provided, it's the # sign (which is for channels).

Joined: Nov 2006
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2006
Posts: 35
I want it to be in any channel, including status since the notice is posting in status. I used the :*: to indicate anywhere. Can you tell me what code I should use to trigger a message in status?

Thanks very much.

Joined: Oct 2003
Posts: 313
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 313
A notice can be sent to either a user or a channel. Where they are *displayed* is dependent on the options you set in your client.

As with the on text, you have two "parameters" after the "NOTICE" event type name: matchtext and target. In your code you only supplied matchtext, and left out the target.

So if you make your on notice look much the same as your on text, I think you will find it works as you want.

Code:
on *:NOTICE:*Message*:#: { /splay notice.wav }


(not sure if you were after the same matchtext or not - obviously replace with "*" to match any text. Ditto the target - use '?' instead of '#' for private notices, or '*' for both private and channel notices.)


Sais
Joined: Nov 2006
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2006
Posts: 35
Thank you very much for your help. Here's the code I used, but so far it doesn't seem to be working:

Code:
  

on *:NOTICE:*Message*:*: { /splay notice.wav }




Does it look proper to you?

Thanks again very much!

Joined: Dec 2004
Posts: 66
B
Babel fish
Offline
Babel fish
B
Joined: Dec 2004
Posts: 66
Code:
on *:NOTICE:*Message*:*: { /splay notice.wav } 

That will only trigger if he word "Message" is somewhere in the notice.
If you want it to make a sound for all notices do this:
Code:
on *:NOTICE:*:*: { /splay notice.wav } 

Joined: Nov 2006
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2006
Posts: 35
Thank you guys very much. I think I found the problem. It in fact is working for notices, however the server message I thought was a notice is apparently something else.

I'm finding out just what they are now.

Thanks very much!

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
It's probably SNOTICE.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard