mIRC Home    About    Download    Register    News    Help

Print Thread
#105630 18/12/04 08:19 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
2 questions: how could I prevent certain channels from highlighting me, and how to even prevent them from changing the color of its button?
I know you can reset the color of a channel button, but couldn't script the complete solution myself.
Thanks in advance!

#105631 19/12/04 03:22 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
The following script skips highlighting for the specified channels with a custom /echo.

On ^*:text:*:#chan1,#chan2: { haltdef | echo -cirt normal # $+(<, $nick, >) $1- }
On ^*:action:*:#chan1,#chan2:{ haltdef | echo -cirt action # * $nick $1- }

#105632 19/12/04 05:31 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
Thank you very much. Now how can I make them to not change the color of their button, or reset the color of the channe button on text or action in it?

#105633 19/12/04 07:12 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
I forgot to mention that those /echo's don't change the color of the button either. See /help /echo for information on the various switches you can use with it.

#105634 19/12/04 07:38 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
As a sidenote, Online's /echo's change the switchbar button colour to the "Event" colour. If you want to change it to "Message" colour, add the -m switch and if you don't want any change of colour, add the -n switch.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#105635 20/12/04 12:05 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
thanx

EDIT:
Code:
on ^*:text:*:#Idle-RPG,#|FaF|,#wzl,#mafia: { haltdef | echo -cirtn normal # $+(&lt;, $nick, &gt;) $1- }
on ^*:action:*:#Idle-RPG,#|FaF|,#wzl,#mafia:{ haltdef | echo -cirtn action # * $nick $1- }


This still makes the specified channelbuttons change color :s

Last edited by LethPhaos; 20/12/04 12:24 PM.
#105636 20/12/04 02:52 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
I'm running mIRC version 6.16 and the above events work here. You probably need to go through the common troubleshooting process to check why the events never trigger on your remote. The first step would be to type /remote on (in case it has been off) and to move our script to the top of your remote file (in case you have anything else there).

#105637 20/12/04 03:38 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
it is on 'n' stuff, i'm using this remotefile for a long time now.
I'll try to put it in a clean file and see if it works.
I'm using v6.16 too.

EDIT: putting it in a clean file didn't help either

Last edited by LethPhaos; 20/12/04 03:42 PM.
#105638 20/12/04 07:30 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Type //echo -a $isalias(echo). If it returns $true, it means that you have a custom /echo alias that precedes the internal command. In this case you may want to either rename it or use !echo in our script to bypass it.

If $isalias() returned $false, check if you have other custom on ^-text/action events. If you find any, try to disable them and see if our script now takes effect.

#105639 21/12/04 12:48 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
gives $false, no other on ^*:EVENT found


Link Copied to Clipboard