mIRC Home    About    Download    Register    News    Help

Print Thread
Minor issue with On :Text: #215976 18/10/09 09:39 PM
Joined: Dec 2002
Posts: 417
O
Othello Offline OP
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
I have a black back ground on my mirc
When I use this code if someone is typing in black it shows up in black on my screen. Is there a way to have the script refer to the color codes used in the color dialog? When others talk in the channel it shows up in black with my black back ground.

code:
on ^*:TEXT:*:#: {
echo -tlmi2 # $+(,,%bclr,-={,%clr,,,%nclr,$chr(32),$remove($nick(#,$nick).pnick,@,+,%,!,&,~),$chr(32),,,%clr,]=-,) $1-
halt
}




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
Re: Minor issue with On :Text: [Re: Othello] #215977 18/10/09 09:41 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
/help echo


Have ya looked?

Re: Minor issue with On :Text: [Re: Othello] #215983 18/10/09 10:20 PM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
1) Just in case, make sure you did not set the color "normal text" in the colors dialog to the background color.
2) replace in your script the last ctrl-B char "" with a ctrl-O "". (The current ctrl-B aka $chr(2) will do/undo a bold formatting, but will keep all other formattings - eg colors. A ctrl-O aka $chr(15) on the other hand side will undo *all* text formatting, which in turn ensures $1- is displayed like received)

Or do you want to be able to read all text - regardless if it was colored in your own background color - without stripping all the other colors?

Last edited by Horstl; 18/10/09 10:26 PM.
Re: Minor issue with On :Text: [Re: Horstl] #215986 19/10/09 12:33 AM
Joined: Dec 2002
Posts: 417
O
Othello Offline OP
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
Thanks Dr Sol for the input on the /echo. I should of thought of that and looked at the help file first. It seems I have more to add to this script to correct any unforeseeable issues like this with in the total script. I just took it as $1- would repeat the line as it was posted in the channel including the colors the line was posted in. Not taking in account that some folks still post in b&w.

And thank you Horstl. I guess when I tried to simplify the script I did not think of a minor issue like that wound cause a unforeseeable problem.

Last edited by Othello; 19/10/09 12:56 AM.



Intelligence: It's better to ask a stupid question, then to prove it by not asking....
Re: Minor issue with On :Text: [Re: Othello] #215988 19/10/09 03:56 AM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Originally Posted By: Othello
Thanks Dr Sol for the input on the /echo.
lol I like DR_Sol better than DJ_Sol