mIRC Home    About    Download    Register    News    Help

Print Thread
Line length limit in script editor #265850 05/08/19 12:38 PM
Joined: Jul 2006
Posts: 3,585
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,585
When a script line is more than the line lenght limit (8292) in literal characters, mIRC does not report a line too long error for the command; it chops at the limit and execute the rest as a new command.
I was trying to list all of the code point of the font segoe ui symbol to make a test script for the previously removed thread about height and ended up with more than 10000+ chars of codepoint space seperated put into a /tokenize:

Code
alias test {
tokenize 32 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
}
Copy and paste the "1 1 1" string to make it extremely long and execute /test, it should execute /1


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Line length limit in script editor [Re: Wims] #265852 05/08/19 01:32 PM
Joined: Dec 2002
Posts: 4,585
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,585
Thanks for your bug report.

Quote
Copy and paste the "1 1 1" string to make it extremely long and execute /test, it should execute /1

As far as I can tell, this is happening because the line is too long for the script editor editbox and is wrapping around to the next line.

Re: Line length limit in script editor [Re: Khaled] #265853 05/08/19 01:53 PM
Joined: Jul 2006
Posts: 3,585
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,585
Right, maybe adding a warning when such a line occurs after edition would help there?

Note that the script editor does not wrap visually speaking

Last edited by Wims; 05/08/19 02:32 PM.

Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net