mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2004
Posts: 42
T
TroyBoy Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Aug 2004
Posts: 42
Mirc's variable length limitation is 940 characters.

//set %temp $str(1,940)
(no error)

//set %temp $str(1,941)
* /set: line too long

//set %temp $str(1,950)
* String too long: $str

I also ran into this limitation with the length of a hash entry.

Is there any logic in this size limitation?
Can we PLEASE make it HEAPS longer?

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
One likely reason for that limitation is it roughly correlates to the maximum message length for IRC. It's no good having a 20,000 character variable and trying to /msg someone with it because it simply won't work. Remember that at the end of the day it's a scripting language for an IRC client, not a general purpose programming language.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
The direct reason for the limitation is the winapi function wsprintf() that mirc uses all over, that only supports up to 1024 chars. There is an equivalent function to wsprintf() that supports more chars, but I don't know how easily it can replace wsprintf() in mirc.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Aug 2004
Posts: 42
T
TroyBoy Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Aug 2004
Posts: 42
Quote:
One likely reason for that limitation is it roughly correlates to the maximum message length for IRC. It's no good having a 20,000 character variable and trying to /msg someone with it because it simply won't work. Remember that at the end of the day it's a scripting language for an IRC client, not a general purpose programming language.


Actually, the max length of a line that can be sent in mIRC is about 440 characters.

qwerty seems to be onto the reason. the other 84 characters might be used for the length of the variable name.
There may be a way to increase the length, but it could be a limitation that I might have to put up with.

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Oh yeah it's 512 bytes, I was thinking it was 1024. Oh well.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Aug 2004
Posts: 147
N
Vogon poet
Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
"Remember that at the end of the day it's a scripting language for an IRC client, not a general purpose programming language."

That post is so flawed.

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Why's that?


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Aug 2004
Posts: 147
N
Vogon poet
Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
Because mIRC is a multipurpose program.

Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
Quote:
Because mIRC is a multipurpose program.


where does it say that?

think it's clearly an IRC client with a few added functionalities to increase the fun for users...

but it's no where near intended as a multi purpose program, and neither is the mIRC scripting language strong enough to program any decent programs in...


If it ain't broken, don't fix it!
Joined: Aug 2004
Posts: 147
N
Vogon poet
Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
"where does it say that?"
Where does it say it isn't?

"but it's no where near intended as a multi purpose program, and neither is the mIRC scripting language strong enough to program any decent programs in..."
I disagree

Joined: Apr 2004
Posts: 865
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 865
Quote:
Where does it say it isn't?

Start mIRC, press F1, click on Introduction, and read the first line under the header.


Saturn, QuakeNet staff
Joined: Aug 2004
Posts: 147
N
Vogon poet
Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
It's an IRC client equipped with scripting capability!

Joined: Apr 2004
Posts: 218
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
Please explain more than just being able to add scripting fuctions.


Live to Dream & Dream for Life
Joined: Aug 2004
Posts: 147
N
Vogon poet
Offline
Vogon poet
N
Joined: Aug 2004
Posts: 147
It's an IRC client that can do more than connect to an IRC server, making it a multipurpose program.

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
mirc can write scripts, you know like "romeo and juliet" etc

Joined: Aug 2004
Posts: 42
T
TroyBoy Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Aug 2004
Posts: 42
I wonder if anyone important actually reads these posts.
ie, someone who can actually do something with these suggestions.
Someone who walks the walk, and not just talk the talk!

Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Khaled regularly reads feature suggestions and bug reports, it's rare he replies though. Khaled is the only one who develops mIRC 'physically'.

Regards,


Mentality/Chris

Link Copied to Clipboard