mIRC Home    About    Download    Register    News    Help

Print Thread
#229701 14/02/11 07:23 PM
Joined: Apr 2010
Posts: 4
H
Hrki Offline OP
Self-satisified door
OP Offline
Self-satisified door
H
Joined: Apr 2010
Posts: 4
//echo -a $asc(,)

doesnt work

//echo -a $chr(45)

can't repeat echo two or more time (only one displays)

Last edited by Hrki; 14/02/11 07:39 PM.
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
None of these are bugs :

1) comma seperate arguments inside identifier, $asc(,) is calling $asc with two $null parameters, use $asc($?) for exemple

2) syntax for the JOIN command is described here
Quote:
JOIN #foo,&bar fubar ; join channel #foo using key "fubar"
and &bar using no key.

JOIN #foo,#bar fubar,foobar ; join channel #foo using key "fubar".
and channel #bar using key "foobar".


3) This is a side effect of line seperation in mirc, if a window is empty or if the last line equal the line seperator caracter (- by default, can be changed in option > other), you can't actually display it by /echo or /aline (or /linesep)

Last edited by Wims; 14/02/11 07:41 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Apr 2010
Posts: 4
H
Hrki Offline OP
Self-satisified door
OP Offline
Self-satisified door
H
Joined: Apr 2010
Posts: 4
Thx for fast reply!

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
And just so you know, other characters such as parentheses are also not valid inside $asc() unless you insert them as a variable or input ($? being an input). For example, you can't do:

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

But you can do:

//var %c = ( | echo -a $asc(%c)
//echo -a $asc($?)

You'll find that there are "special" characters like these that cannot be inserted directly into a variety of identifiers and other locations in mIRC scripting. However, there are always ways to get what you need once you know that. smile


Invision Support
#Invision on irc.irchighway.net
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
FYI: Normal characters, excluding Unicode/Code Page specific, can be viewed with their respective ascii values here


Link Copied to Clipboard