GAM Posted February 5, 2008 Share Posted February 5, 2008 Can anyone help me know HOW MANY LINES OF CODE CAN BE WRITTEN IN A SINGLE AUTOIT SCRIPT??? Neil Link to comment Share on other sites More sharing options...
erezlevi Posted February 5, 2008 Share Posted February 5, 2008 Can anyone help me know HOW MANY LINES OF CODE CAN BE WRITTEN IN A SINGLE AUTOIT SCRIPT???did you search the forum ? Link to comment Share on other sites More sharing options...
BrettF Posted February 5, 2008 Share Posted February 5, 2008 You would be hard pressed to exceeed this limit... MAX_LINESIZE 4095 Maximum size for a line of script. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Glyph Posted February 5, 2008 Share Posted February 5, 2008 (edited) 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 February 5, 2008 by BackStabbed tolle indicium Link to comment Share on other sites More sharing options...
Squirrely1 Posted February 5, 2008 Share Posted February 5, 2008 (edited) 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 February 5, 2008 by Squirrely1 Das Häschen benutzt Radar Link to comment Share on other sites More sharing options...
GAM Posted February 5, 2008 Author Share Posted February 5, 2008 But i Have written a automation using autoit that reahces more 4000 lines, so will this script work? Neil Link to comment Share on other sites More sharing options...
GAM Posted February 5, 2008 Author Share Posted February 5, 2008 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!!!!! Neil Link to comment Share on other sites More sharing options...
whim Posted February 5, 2008 Share Posted February 5, 2008 (edited) 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,095Maximum string length: 2,147,483,647 charactersNumber range (floating point): 1.7E308 to 1.7E+308 with 15-digit precisionNumber range (integers): 64-bit signed integerHexadecimal numbers: 32-bit signed integer (0x80000000 to 0x7FFFFFFF)Arrays: A maximum of 64 dimensions and/or a total of 16 million elementsMaximum depth of recursive function calls: 384 levelsMaximum number of variables in use at one time: No limitMaximum number of user defined functions: No limitMaximum number of GUI windows: 1024Maximum number of GUI controls per window: 4096edit: If you run out, so what ? AutoIt will throw an error, and you split up your script Edited February 5, 2008 by whim Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 5, 2008 Share Posted February 5, 2008 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 More sharing options...
GAM Posted February 5, 2008 Author Share Posted February 5, 2008 As of now it works fine but my worry is all about what happens if it reaches more than the limit(4095). Neil Link to comment Share on other sites More sharing options...
Siao Posted February 5, 2008 Share Posted February 5, 2008 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 More sharing options...
GAM Posted February 5, 2008 Author Share Posted February 5, 2008 Thanks Siao, this is what the answer i'm looking for. I will continue with scripting .......... Neil Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now