dazza Posted August 1, 2008 Posted August 1, 2008 Assume I have a list of functions called:fn1fn2fn3fn4Is there any way I can call them like this:call_func("fn1") orcall_func("fn2") etc.Is this an API thing?
Innovative Posted August 1, 2008 Posted August 1, 2008 Call ( "function" [, param1 [, param2 [, paramN ]]] )
BrettF Posted August 1, 2008 Posted August 1, 2008 _Function ($title, $text) Func _Function ($title, $text) MsgBox (0, $title, $text) EndFunc Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
dazza Posted August 1, 2008 Author Posted August 1, 2008 Call ( "function" [, param1 [, param2 [, paramN ]]] ) That was easy - thicky me. Many thanks.
BrettF Posted August 1, 2008 Posted August 1, 2008 There is no real need to use Call. You can just call it by _Func (Param1,..., ParamN) Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now