Jump to content

Recommended Posts

Posted (edited)

HUH? wtf r u trying to do

call("func1")

func func1()
    sleep(500)
EndFunc

and u dont need a call to call a function

u can just type the func name

func1()

func func1()
sleep(500)
endfunc
Edited by thatsgreat2345
Posted

This is what he means

Func Test($Value)

MsgBox(0, "", $Value)

EndFunc

Now, he cant call this function with

Call(Test(Value))

----

Just do

Test(500), you don't need Call( )

  • Moderators
Posted

This is what he means

Func Test($Value)

MsgBox(0, "", $Value)

EndFunc

Now, he cant call this function with

Call(Test(Value))

----

Just do

Test(500), you don't need Call( )

Actually you can use Call() with parameters: He's just trying to call a predetermined function within a function call which is incorrect.

Call('_CallParameterTest', 'See?')

Func _CallParameterTest($parameter)
    MsgBox(0, 'Test', $parameter)
EndFunc

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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
×
×
  • Create New...