Im relative new to this awesome script language and every day Im mindblowed but what things I discover and didn't know about the au3 syntax but I have some questions :
#1. What is ByRef and what it does/why to use it/where to use it![:think:]()
#2. Is this really really true that the first character after the $ sign in the variable name means the type of the variable ???
( Like $iVar = int and $sVar = char types from C ? )
What about if I declare $Random instead ? If the above is true, then why all my created programs are working with random names without the correct specific type declared
? Like $pink = 5 + 5 does works despite the 'p' representing the pointer type !
#3. Why I need to unregister things or close any handles like DllClose after a DllOpen OR _GDIPlus_Shutdown() after my script exists ?
#4. And last but not the least why this :
and not this instead :
Will there be any problems whatsoever if the last variant ?
#1. What is ByRef and what it does/why to use it/where to use it
![:think:](http://aut1.autoit-cdn.com/forum/public/style_emoticons/default/think.gif)
#2. Is this really really true that the first character after the $ sign in the variable name means the type of the variable ???
![:shocked:](http://aut1.autoit-cdn.com/forum/public/style_emoticons/default/shocked.gif)
![:shocked:](http://aut1.autoit-cdn.com/forum/public/style_emoticons/default/shocked.gif)
What about if I declare $Random instead ? If the above is true, then why all my created programs are working with random names without the correct specific type declared
![:shocked:](http://aut1.autoit-cdn.com/forum/public/style_emoticons/default/shocked.gif)
#3. Why I need to unregister things or close any handles like DllClose after a DllOpen OR _GDIPlus_Shutdown() after my script exists ?
#4. And last but not the least why this :
[ autoit ]
and not this instead :
[ autoit ]
Will there be any problems whatsoever if the last variant ?