mIRC Home    About    Download    Register    News    Help

Print Thread
#115995 31/03/05 10:27 PM
Joined: Mar 2005
Posts: 41
P
pUff Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2005
Posts: 41
I tried to look in the /help to find out about " Coding " but i couldn't find anything. Because once i was messaged and it was a virus with a lot of letters with a $decode in front of it. I cant figure this out. Could someone at least tell me a little about this?

#115996 31/03/05 10:36 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
From the help file:

Encode or decode text in %vars or &binvars using Uuencode or Mime.

The second parameter consists of switches, where m = mime, u = uucode (default), b = &binvar, and t = text (default).

The final encoded line is made up of 60-character chunks. You can specify N if you want mIRC to return the Nth chunk. N = 0 returns the total number of chunks in the line.

If encoding/decoding a &binvar, the identifiers return the actual number of characters written to the &binvar. Note that encoding uses 33% more storage space.

The last two parameters are optional, default to uuencode, and N = 1.

//var %x = $encode(Hello $me $+ !!,m) | echo -a Decoded %x to: $decode(%x,m)

Brief example that encodes your nickname and stores it in a var, then echoes it.

#115997 01/04/05 02:14 AM
Joined: Mar 2005
Posts: 41
P
pUff Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2005
Posts: 41
Okay... I still don't understand 100% but i think i can learn the rest myself... Thank you smile

#115998 01/04/05 02:26 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome mate. smile


Link Copied to Clipboard