Jump to content

Number of Lines in a Single AUTOIT Script


GAM
 Share

Recommended Posts

Can anyone help me know HOW MANY LINES OF CODE CAN BE WRITTEN IN A SINGLE AUTOIT SCRIPT???

If you don't already know, or were wondering (or neither)

Here's a way to multi line a single line:

MsgBox(0,"","Weee, line 1!"& _
" Still line 1!"& _ 
" Again, line 1")
Edited by BackStabbed

tolle indicium

Link to comment
Share on other sites

Unless you are some kind of genius, newbe, always keep a script below 1500 lines, but let us say never more than 3500. Although I don't think there is any real, reasonable limit you will ever reach, it would be better to always break up any script bigger than that into smaller programs, keeping in mind that you can execute them from each other.

Personally, my best scripts are kind of short, less than 700 lines. But this comes with a caveat - because once, I hit my head on the idiot pole until I broke it.

:)

Edited by Squirrely1

Das Häschen benutzt Radar

Link to comment
Share on other sites

From Helpfile -> AutoIt -> FAQ

15. What are the current technical limits of AutoIt v3?

Here are details of the current technical limits of AutoIt. Please note that some of the limits are theoretical and you may run into performance or memory related problems before you reach the actual limit.

Maximum length of a single script line: 4,095

Maximum string length: 2,147,483,647 characters

Number range (floating point): 1.7E308 to 1.7E+308 with 15-digit precision

Number range (integers): 64-bit signed integer

Hexadecimal numbers: 32-bit signed integer (0x80000000 to 0x7FFFFFFF)

Arrays: A maximum of 64 dimensions and/or a total of 16 million elements

Maximum depth of recursive function calls: 384 levels

Maximum number of variables in use at one time: No limit

Maximum number of user defined functions: No limit

Maximum number of GUI windows: 1024

Maximum number of GUI controls per window: 4096

edit: If you run out, so what ? AutoIt will throw an error, and

you split up your script

Edited by whim
Link to comment
Share on other sites

But i Have written a automation using autoit that reahces more 4000 lines, so will this script work? this four thousand cose comprises of declaration, functions and every stuff!!!!!

Isn't this a pretty stupid question to have to ask?

Ask it this way: What happens when you try it?

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

The limit isn't 4095.

Not sure why anyone who can read properly would get that impression. I think it states clearly that 4095 is the length limit of a single script line (as in, maximum number of characters in a line).

You really don't have to worry about limit on number of lines in a script.

And if you still do, it really doesn't take a genius to come up with a test script and see for yourself.

"be smart, drink your wine"

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...