mIRC Home    About    Download    Register    News    Help

Print Thread
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 =-
Joined: Dec 2002
Posts: 417
O
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....
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 =-
Joined: Dec 2002
Posts: 1,527
_
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
Joined: Jan 2003
Posts: 3,012
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
Joined: Dec 2002
Posts: 1,527
_
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
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Do you have any other on notice events that might conflict?

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 =-
Joined: Dec 2002
Posts: 417
O
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....
Joined: Dec 2002
Posts: 417
O
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....
Joined: Dec 2002
Posts: 699
N
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)

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 =-
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Well, the # makes that a channel notice event. (/notice #channel text)
on *:NOTICE:*:#:{

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 =-
Joined: Dec 2002
Posts: 699
N
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

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 =-
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Happy 500th post, Nimue.


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

Link Copied to Clipboard