Sign in to follow this  
Followers 0
SlimShady

What's The Limitation To ... ?

9 posts in this topic

#1 ·  Posted (edited)

I have some questions I would like to have answered.

What's the maximum filesize of a textfile that can be loaded?

How many lines is the limit for a textfile that can be loaded?

And how many characters per line is the limit?

How many characters (as a string) can a variable have?

I mean: how many characters (as a string) can you assign to a variable?

Thank you very much.

PS. There's no General or Questions forum, that's why I posted here.

Edited by SlimShady

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

What's the maximum filesize of a textfile that can be loaded?

A variable can be at most 2,147,483,647 characters

How many lines is the limit for a textfile that can be loaded?

Lines are just a special char (@lf ,@cr or @crlf) so it do not count diffently. Just every end of line count as a char (or 2 if you are using the DOS @crlf )

And how many characters per line is the limit?

See above.

How many characters (as a string) can a variable have?

2,147,483,647

I mean: how many characters (as a string) can you assign to a variable?

2,147,483,647

Btw, in the FAQ of the help file there is a question "What are the current technical limits of AutoIt v3?" that may answer you more.

Edited by ezzetabi

Share this post


Link to post
Share on other sites

How many characters can fit in a MsgBox?

Share this post


Link to post
Share on other sites

The limit reaches beyond what can actually fit on the screen. I tried.


Who else would I be?

Share this post


Link to post
Share on other sites

Allright. Thanks, that's very helpful.

Share this post


Link to post
Share on other sites

Two things this time:

1. How many GUI dialogs can we create in one script?

2. How many GUI controls can we create in one script? (assume none will be deleted)

Share this post


Link to post
Share on other sites

1. Might depend on system resources, but I got to 262 GUI windows in one script...

2. Approx 4094 controls. Highest index is 4096, and the lowest is currently 3.

And it appears that each GUI can contain the max number of controls.....

;COUNT CONTROLS

GuiCreate("CountMaxControls")
Dim $i = 1
$firstID = GuiCtrlCreateButton("foo", 10, 10)
While GuiCtrlCreateButton("foo", 10, 10, 100, 100)
   $i = $i + 1
   ToolTip($i, 0, 0)
Wend
MsgBox(4096,"", $i - $firstID + 1)


; COUNT WINDOWS
Dim $i = 0
While Not @error 
   $i = $i + 1
   ToolTip($i, 0, 0)
   GuiCreate("CountMaxControls")
Wend
MsgBox(4096,"", $i)

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Perfect.

Thansk for the info.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0