mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2005
Posts: 449
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Hi, I'm thinking about trying to make a very basic IRC client in Visual Basic. I know about the debug window, but is there any way to see exactly what I'm sending? I'm not sure about the color codes for one thing. Is that literally just sending "Ctrl +K(number) text"? Thanks.

Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Not sure if this is what you were after, but the ascii values for the mirc control codes are... ctrl+k - 3 , ctrl+b - 2 , ctrl+u - 31 , ctrl+r - 22 , ctrl+o - 15

Without looking into it which i am unable to do atm, i can't say for sure if mirc just sends the plain control codes (little boxes are they appear i guess), but ctcp's send and recieve this way so it would be a fair assumption.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
Joined: May 2005
Posts: 449
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Thanks. That might be helpful. I'll have to try that. I did try this line, and it echoed in the right color
Code:
//echo -a $chr(3) $+ 5 hello

Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
The debug window shows what you are sending and receiving. Control codes are sent as "little boxes". Each little box is actually a different non-printable character (ASCII characters 0 to 31). The IRC protocol uses certain non-printable characters that act as "color" "bold" etc. You can find the actual ASCII value of the control codes (or any other character) by using this code:

//echo -a $asc($$?)

When the dialog opens, press ctrl+k/ctrl+b/etc and press enter. The ascii value of the character will be echo'd to the active window.

-genius_at_work

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Try this for multiple characters.

//bset -t &binvar 1 $$?="Some string" | echo -a $bvar(&binvar,1-)

-Andy


Link Copied to Clipboard