Hello, mIRC scripter!
One of the most advanced features of every
modern script is the ability to update itself. It looks very promising, but
people with slow connections might have noticed that it’s rather boring to wait
until “that 20mb .BMP finishes being downloaded through the socket” ;)…
nGZIPn can compress and decompress files. I’ve
written it to prove that it’s possible and easy. This DLL is based upon the
well-known freeware library “zlib” by Jean-loup Gailly and Mark Adler.
It contains 3 functions:
1. version – returns the version ID of the library
2. zip – compresses a file (the “.gz” suffix is added automatically)
3. unzip – decompresses a file (you must not specify the “.gz” suffix, it
is implied)
Copy the DLL into your main mIRC folder and
load the “nGZIPn.mrc” sample… or just try this:
//echo –a
$dll(nGZIPn,zip,mirc32.exe) | .rename mirc32.exe.gz mirc64.exe.gz | echo –a
$dll(nGZIPn,unzip,mirc64.exe)
necroman@europe.com, #mIRC @ Undernet