mIRC Homepage
Posted By: Othello Tokens - 22/08/03 12:35 AM
I am trying to remove all file types within a custom @window
When I load a list of mixed files I would like to filter out
unwanted file types in a list loaded to the custom @Window
This is what I have come up with but it does not work.
Can someone point out what I am doing wrong..


Remove Audio Files: {
[color:green] ; counts the number of tokens in the alias atypes [color:red]
var %at = $numtok(atypes,59)
while ( %at > 0 ) {
[color:green] ; this line is suppose to filter the file types in the window [color:red]
filter -xwwc @test @test $gettok(atype,%at,59)
dec %at
}
}
[color:green]
this is a list of the file types I wish to remove from the window
[color:red] alias -l atypes return .mp2;.mp3;.mp4;.m3u;.wav;.mid;.mod;.ra;.vob;.wma
Posted By: Othello Re: Tokens - 22/08/03 12:42 AM
I have corrected the $atypes to atypes
Posted By: CloCkWeRX Re: Tokens - 22/08/03 12:53 AM
Is it just my eyes decieving meh or does it say
filter -xwwc @test @test $gettok($atype,%at,59)
($atype rather than $atypes)
beyond that, *shrug* I'm sleepy.
Posted By: Othello Re: Tokens - 22/08/03 01:01 AM
yes I know its a typo
I had the line correct in my script
Posted By: saxon Re: Tokens - 22/08/03 03:00 PM
So your using:

filter -xwwc @test @test $gettok(atypes,%at,59)

Your not calling atypes as an identifier, so it won't return anything.

It should be:

filter -xwwc @test @test $gettok($atypes,%at,59)

If that is just another case of a typo, sorry, but how am I too know. Try pasting the code you are actually using here.
Posted By: Othello Re: Tokens - 22/08/03 09:33 PM
Thank you. I was under the impression when $ was used in a command it was a Mirc command not a variable in a alias

I also didn't take in affect that the buffers size of the window
could of been over run in the script filtering the different types in the window.
© mIRC Discussion Forums