We see a lot of examples submitted by users but rarely do we see threads about good coding practice. Post below if you have an example which exhibits the "dos and don'ts" of coding in AutoIt.
Why using Dim over Local/Global is not always a good option:
Dim $vVariableThatIsGlobal = "This is a variable that has ""Program Scope"" aka Global."
MsgBox($MB_SYSTEMMODAL, "", "An example of why Dim can cause more problems than solve
My tip is that Global variables is your best friend as long you throw to the garbage the approach of making variables names short as possible and you know what you are doing..
Of course, you do not have to accept it. This is what I got after a long experience(small with C++) and deep thought.
My suggested and new coding style is this:
Use globals variables as many as you need. It may be that the more global variables, the more It is better (only if you know what you are d