Jump to content

Maximum lenght of script line...


roby
 Share

Recommended Posts

...Maximum length of a single script line is 4.095...

Yes, "includes" add to the number of lines in a script - however, the spec limit that you quoted refers to the max number of characters for one single line of an AutoIt script. Many scripts have more than 4095 lines of code. Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

Many scripts have more than 4095 lines of code.

...or at least, they used to before I learned about arrays, For/Next loops, and structured programming.

:)

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

...or at least, they used to before I learned about arrays, For/Next loops, and structured programming.

:)

Twas a sad day for my intern whom I immediately axed, for their code dictation skills were no longer necessary nor cost effective.

Okay i've never had an intern...doesn't mean I haven't axed one...

Link to comment
Share on other sites

...or at least, they used to before I learned about arrays, For/Next loops, and structured programming.

:)

Are you sure?

If you have ever used...

#include <GuiListView.au3>

...it adds at least 5937 lines and I'm not counting these:

#include <ListViewConstants.au3>

#include <Array.au3>

#include <Misc.au3>

#include <Memory.au3>

#include <WinAPI.au3>

#include <StructureConstants.au3>

#include <ImageListConstants.au3>

that are included within GuiListView.au3...

...which have includes...

...which have includes...

...which have includes...

.......

...or am I not understanding "includes" properly?

Don't all of the lines go into your script even if you do not need/use them?

Is the OP asking about "includes" as they impact the misunderstood limit?

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

Are you sure?

If you have ever used...

#include <GuiListView.au3>

...it adds at least 5937 lines and I'm not counting these:

#include <ListViewConstants.au3>

#include <Array.au3>

#include <Misc.au3>

#include <Memory.au3>

#include <WinAPI.au3>

#include <StructureConstants.au3>

#include <ImageListConstants.au3>

that are included within GuiListView.au3...

...which have includes...

...which have includes...

...which have includes...

.......

...or am I not understanding "includes" properly?

Don't all of the lines go into your script even if you do not need/use them?

Is the OP asking about "includes" as they impact the misunderstood limit?

No doubt that generates some serious lines, but it gets byte-encoded and compressed, so I don't think the impact on the final size of the .exe is that much.

As for the OP, I think he just misunderstood the limit, which has nothing to do with line count, as you already pointed out. Already off track, I think he was under the impression that lines in included files counted "against" him.

:)

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 answer to all of lifes questions, 42:

http://en.wikipedia.org/wiki/Answer_to_Lif..._and_Everything

...but answers are easy. The hard part is figuring out what the question was!

:)

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

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...