mIRC Home    About    Download    Register    News    Help

Print Thread
#157656 27/08/06 06:41 AM
Joined: Aug 2006
Posts: 6
T
trajic Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Aug 2006
Posts: 6
Hi, I'm new(again) to coding..
I was just doing a tutorial in @windows... Which are great, but what I'm really looking for is a way to filter up to 5 particular lines in succession from a dcc chat to anything else (@window, txt file, dialogue box).

Is this possible? confused

My previous exp was 4 years ago and only really with pretties and popups. I'm way out of my depth!

#157657 27/08/06 09:01 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
top of my head

//filter -ww =nick @window *whatever*

=nick to make it look at the dcc chat of nick

#157658 27/08/06 09:21 AM
Joined: Aug 2006
Posts: 6
T
trajic Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Aug 2006
Posts: 6
I typed /window -e @last

then
//filter -ww =gambot @last *last*


but i got
* /filter: invalid window

I assume the =gambot is the invalid window it's talking about.. but it's hard to know

Thanks though.


edit:
ok... I tried just

//filter -ww gambot @last *last*

and that copied across

and

//filter -ww gambot @last *red*

actually sent across what I wanted. Unfortunately, I don't want the info from the query window. I got the same error message when i tried it with a =gambot in it frown

Last edited by trajic; 27/08/06 09:21 AM.
#157659 27/08/06 11:50 AM
Joined: Feb 2006
Posts: 546
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
use "chat gambot" in place of =gambot, include quotes :tongue:


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
#157660 27/08/06 11:55 AM
Joined: Aug 2006
Posts: 6
T
trajic Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Aug 2006
Posts: 6
Thanks for your help Jaytea, but I got the same error mesage
"* /filter: invalid window"

#157661 27/08/06 11:59 AM
Joined: Aug 2006
Posts: 6
T
trajic Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Aug 2006
Posts: 6
Someone else suggested having a remote to look at the dcc window or something? confused

#157662 27/08/06 12:25 PM
Joined: Feb 2006
Posts: 546
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
hmm thats odd :P i know "chat nick" is the format for commands such as /window and for some reason i remembered it working in /filter o_O


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
#157663 27/08/06 12:53 PM
Joined: Aug 2006
Posts: 6
T
trajic Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Aug 2006
Posts: 6
Had a brainwave and tried "chat =gambot" ... still didn't work. lol



edit: Is there a way to denote the active window?
like maybe

//filter -ww $THISONE @last *last*

??

Last edited by trajic; 27/08/06 01:17 PM.
#157664 27/08/06 01:40 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Doesnt seem to work with chat windows, never noticed that before.

Well heres a work around
//savebuf =NICK tempfile.txt | filter -fw tempfile.txt @window *whatever*

#157665 27/08/06 02:15 PM
Joined: Aug 2006
Posts: 6
T
trajic Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Aug 2006
Posts: 6
Thanks so much! That one works.

Trust me to want it to do something that's not's possible/bugged..


laugh


Link Copied to Clipboard