mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2008
Posts: 4
N
Self-satisified door
OP Offline
Self-satisified door
N
Joined: Oct 2008
Posts: 4
I am making a script where i need to be able to message the | character, but | is the breakline character, is there a way to override that?

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
You can use $chr(ascii-value), in your case this is: $chr(124). There are charmaps for reference, and you can quicky find out the ascii of some character with mIRC itself: use //echo -a $asc(char), e.g.: //echo -a $asc(|)
Alternatively, you can use $eval(char,0) - in your case $eval(|,0) in your code.

Joined: Oct 2008
Posts: 4
N
Self-satisified door
OP Offline
Self-satisified door
N
Joined: Oct 2008
Posts: 4
thanks a bunch.

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Code:
on 1:INPUT:#: { if ($regex($1-,\174)) echo -a true | else echo -a false }


Link Copied to Clipboard