mIRC Homepage
Posted By: DooMaster Delete a wildcard text from a window - 03/08/20 01:18 AM
I was reading in the docs and i saw that there is not any (easy, without loop) way to delete a wildcard text from a @window.

(i know /aline has -n to prevent adding duplicate lines, but this one would be useful for other cases too)

The suggestion is:

/dline [-w] @window <text>

-w = will detect and delete all the matching wildcard text lines from the @window

Example:

Code
/window @test
/aline @window test1
/aline @window test2
/aline @window test3
/aline @window test1
/dline -w @window *test1*


Code
@window:

test2
test3


- Thanks laugh smile !
Posted By: Talon Re: Delete a wildcard text from a window - 10/08/20 02:16 PM
you can do this with filter. There's a ton of options but here is a simplistic example:

Create a custom desktop window, and fill some lines like so:
Code
/window -d @test
/aline @test test1
/aline @test test2
/aline @test test3
/aline @test test1


Now use filter to specify in/out both custom windows (-ww), since the out is the same as the in, clear it (c) and exclude any lines matching wildcard *test1* (x)
Code
/filter -wwcx @test @test *test1*


You should be left with two lines, test2 and test3.
© mIRC Discussion Forums