[Autoit] Call Function???

06/14/2017 04:30 iCraziE#1
So, I have a simple question that I hope someone can answer.

What is the difference between using the "Call" function and simply running your function in the script?

For example..

Code:
Func _something()
      ;Does some stuff here
      ;more stuff, more stuff...
EndFunc

Call("_something") ;<--- execute "_something" function.

_something() ;<-- or you can use this way instead.
As far as I know they pretty much do the same thing, but there has to be a reason for using one and not the other. Can anyone elaborate on this? Thanks.
06/14/2017 04:36 Halfbax#2
You'll get the benefit of executing anonymous functions.

Code:
$FuncName = "Test"

Call($FuncName)
06/14/2017 16:23 iCraziE#3
ah okay, so thats really it then .. hm thanks for the info :)