mIRC Homepage
Posted By: saragani Filter - 29/04/03 02:09 PM
Lets say I have a window @wind and it has a line that was added to it by:
/aline @wind hello 4to you 12too
So it has the hello in black, the "to you" in red, and the "too" in blue.

Now I want to use the filter command so the text will be ripped from the windows to a text file, but without the colors:

/filter -wf @wind hello.txt

Since the colors are not being striped, I get:
hello 4to you 12too
in the text files.

What must I do, so I will only get "hello to you too" ?

Second questioon:
Lets say I have the hello.txt file with the "hello to you too" line.
How to I add it to a window, using the FILTER command, so it will be in a color that I want it to be (and not black)??

I don't want to use a while loops to scan the window, or the text file, cause if the file is big, it may take a long time, and with Filter command it take less than a second.

Thanks

Posted By: theRat Re: Filter - 29/04/03 02:11 PM
/help /filter
-b switch
Posted By: saragani Re: Filter - 29/04/03 02:21 PM
I know it is the -b switch!!!!!

But there isn't any explenation on how to use it!!

And you don't have any answer to my second question.

Posted By: theRat Re: Filter - 29/04/03 02:23 PM
there's no answer to your second question

If you don't know how to RTFM you're in deep... there...
Posted By: saragani Re: Filter - 29/04/03 02:26 PM
But what about the first question?

How do I use the -b switch?

If I write:
/filter -wfb @wind hello.txt

I still get the same thing.
Posted By: theRat Re: Filter - 29/04/03 02:28 PM
oh, my mistake, you have to strip 'em with loops...
Posted By: saragani Re: Filter - 29/04/03 02:33 PM
Isn't there a way of doing it without striping it with a loop??

A loop take a lot of resources and time, when the @wind has a lot of lines in it.

Posted By: qwerty Re: Filter - 29/04/03 03:16 PM
Unfortunately there's no other way that doing it line-by-line. In case you care, all the -b switch does is strip the control codes from the wildcard text used in /filter, ie it just saves you using $strip(<wildcard>).
© mIRC Discussion Forums