mIRC Home    About    Download    Register    News    Help

Print Thread
#13177 26/02/03 03:31 AM
Joined: Jan 2003
Posts: 94
S
Sabby Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Jan 2003
Posts: 94
It would be nice to have a /savebuf addon so that you can change and process the outgoing text.

such as:

/savebuf @Blah blah.txt $replace($1-,§,S)

will replace § in every line in @blah when transfering to blah.txt


-
E-Mail: mirc_sabby@hotmail.com
Network: irc.enterthegame.com
Channel: #Helpdesk
#13178 26/02/03 10:21 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Same for /loadbuf (perhaps with a -a flag that tells it to use the identifier to process each line the same way as it loadbufs).

/loadbuf -a @MP3s MP3List.txt $nopath($1-)

or

alias -l FormatString return $replace($1-,$chr(32), $chr(127))
/loadbuf -a @MP3s MP3List.txt $FormatString($1-)


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#13179 26/02/03 11:13 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
-a would be a nice addition, but I'd also like a /filter switch similar to -t, in the way that it would work with tokens. A -h N[-[M]] S switch would dump to the outfile only the N to M tokens (separated by character S). For example, if the infile contains this:

one-two-three-four
1-2-3-4
hehe-haha-hihi-hoho

this command: /filter -h 2-3 45 <infile> <outfile> *
would dump to the outfile this:

two-three
2-3
haha-hihi

I could fine many uses for this switch. Fex, it would be superfast to grab parts of data from an MDX ListView but also any other 'columned list' made in mirc, be it files or custom windows.

A switch for /filter, equivalent to the -a switch you suggested for /loadbuf, could do this as well, but it would be significantly slower, because mirc would have to apply the alias you specified to each line (it's like sorting a file with /filter's -a instead of -t; -a is terribly slower). Personally, I'd like to have both.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard