Jump to content
Sign in to follow this  
giangnguyen

Syntax

Recommended Posts

Does whitespace matter in AutoIt? If it doesn't, I can remove them all to reduce script size right? 
By whitespace I mean the Tab character. IN the image the red part represents the tab just to make things clear

Capture.PNG.e7d7ed1601ffa5c58f3f9b6cfd08

Share this post


Link to post
Share on other sites

@giangnguyen it probably took you more time to type that post that it would have to test it out. Try it and see for yourself ;)

 


"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites

Well, then you might have made something wrong. TABS are not changing the code execution in any way! They are 100% optional.

Edited by Unc3nZureD

Share this post


Link to post
Share on other sites

You don't what to reduce the size and simply make it readable. Use Tidy to make it readable again.
You could use au3stripper to strip your script back to the essentials and the aut2exe compiler takes the whitespace out anyways so there is nothing to worry about.

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thanks for the sugestion
However, I only do this before compiling since I will be hosting the file on a limited server, and need to reduce the size as much as possible.

Anyway I will look for more ways to help optimize my script. Thanks for creating an awesome language!

Share this post


Link to post
Share on other sites
1 minute ago, giangnguyen said:

However, I only do this before compiling since I will be hosting the file on a limited server, and need to reduce the size as much as possible.

,... and I am telling you that this is not needed as aut2exe strips the white spacing for you! ;)

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...