mIRC Home    About    Download    Register    News    Help

Print Thread
on *:NOTICE:*:#: not working =( What's wrong? #22618 05/05/03 10:44 PM
Joined: May 2003
Posts: 78
M
MauS Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2003
Posts: 78
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?


-= endless in a victory of a yourself =-
Re: on *:NOTICE:*:#: not working =( What's wrong? #22619 05/05/03 10:54 PM
Joined: Dec 2002
Posts: 417
O
Othello Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
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]  




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
Re: on *:NOTICE:*:#: not working =( What's wrong? #22620 05/05/03 11:48 PM
Joined: May 2003
Posts: 78
M
MauS Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2003
Posts: 78
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


-= endless in a victory of a yourself =-
Re: on *:NOTICE:*:#: not working =( What's wrong? #22621 06/05/03 12:43 AM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
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


D3m0nnet.com
Re: on *:NOTICE:*:#: not working =( What's wrong? #22622 06/05/03 12:50 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
on *:NOTICE:*:#:{
/splay -w Sounds\ChatAction.wav
/window $+(@,$chan)
/flash
/echo -ti2 $+(<,$nick,>) $1-
}


-KingTomato
Re: on *:NOTICE:*:#: not working =( What's wrong? #22623 06/05/03 12:57 AM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
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


D3m0nnet.com
Re: on *:NOTICE:*:#: not working =( What's wrong? #22624 06/05/03 02:11 AM
Joined: Dec 2002
Posts: 699
N
Nimue Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Do you have any other on notice events that might conflict?

Re: on *:NOTICE:*:#: not working =( What's wrong? #22625 06/05/03 10:02 AM
Joined: May 2003
Posts: 78
M
MauS Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2003
Posts: 78
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


-= endless in a victory of a yourself =-
Re: on *:NOTICE:*:#: not working =( What's wrong? #22626 06/05/03 02:34 PM
Joined: Dec 2002
Posts: 417
O
Othello Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
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]   




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
Re: on *:NOTICE:*:#: not working =( What's wrong? #22627 06/05/03 02:46 PM
Joined: Dec 2002
Posts: 417
O
Othello Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
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.




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
Re: on *:NOTICE:*:#: not working =( What's wrong? #22628 06/05/03 03:01 PM
Joined: Dec 2002
Posts: 699
N
Nimue Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
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)

Re: on *:NOTICE:*:#: not working =( What's wrong? #22629 06/05/03 04:12 PM
Joined: May 2003
Posts: 78
M
MauS Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2003
Posts: 78
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...


-= endless in a victory of a yourself =-
Re: on *:NOTICE:*:#: not working =( What's wrong? #22630 06/05/03 04:17 PM
Joined: Dec 2002
Posts: 699
N
Nimue Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Well, the # makes that a channel notice event. (/notice #channel text)
on *:NOTICE:*:#:{

Re: on *:NOTICE:*:#: not working =( What's wrong? #22631 06/05/03 04:23 PM
Joined: May 2003
Posts: 78
M
MauS Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2003
Posts: 78
Oh... Now i see. Thanks for your help, Nimue ^_^


-= endless in a victory of a yourself =-
Re: on *:NOTICE:*:#: not working =( What's wrong? #22632 06/05/03 04:28 PM
Joined: Dec 2002
Posts: 699
N
Nimue Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
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

Re: on *:NOTICE:*:#: not working =( What's wrong? #22633 07/05/03 03:22 AM
Joined: May 2003
Posts: 78
M
MauS Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2003
Posts: 78
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


-= endless in a victory of a yourself =-
Re: on *:NOTICE:*:#: not working =( What's wrong? #22634 07/05/03 05:50 AM
Joined: Feb 2003
Posts: 2,690
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,690
Happy 500th post, Nimue.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!