mIRC Home    About    Download    Register    News    Help

Print Thread
#43476 22/08/03 12:35 AM
Joined: Dec 2002
Posts: 417
O
Othello Offline OP
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
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

Last edited by Othello; 22/08/03 01:02 AM.



Intelligence: It's better to ask a stupid question, then to prove it by not asking....
#43477 22/08/03 12:42 AM
Joined: Dec 2002
Posts: 417
O
Othello Offline OP
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
I have corrected the $atypes to atypes




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
#43478 22/08/03 12:53 AM
Joined: Feb 2003
Posts: 309
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Feb 2003
Posts: 309
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.

#43479 22/08/03 01:01 AM
Joined: Dec 2002
Posts: 417
O
Othello Offline OP
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
yes I know its a typo
I had the line correct in my script




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
#43480 22/08/03 03:00 PM
Joined: Apr 2003
Posts: 210
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Apr 2003
Posts: 210
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.

#43481 22/08/03 09:33 PM
Joined: Dec 2002
Posts: 417
O
Othello Offline OP
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
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.




Intelligence: It's better to ask a stupid question, then to prove it by not asking....

Link Copied to Clipboard