Function calls in V2 Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
Spitzi
Posts: 313
Joined: 24 Feb 2022, 03:45

Function calls in V2

17 May 2023, 17:01

Hi

In V1, I used to call a function, whose name is stored in a variable, and that needs a parameter, like that:

Code: Select all

FuncToBeCalled := Func(FunctionName).Bind(SomeValue)
FuncToBeCalled.Call()
How do I do that in V2?
User avatar
mikeyww
Posts: 26979
Joined: 09 Sep 2014, 18:38

Re: Function calls in V2

17 May 2023, 17:27

Code: Select all

FuncToBeCalled := %FunctionName%.Bind(SomeValue)
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: Function calls in V2  Topic is solved

19 May 2023, 07:05

Code: Select all

FuncToBeCalled := %FunctionName%.Bind(SomeValue)
: then
FuncToBeCalled()
Spitzi
Posts: 313
Joined: 24 Feb 2022, 03:45

Re: Function calls in V2

22 May 2023, 03:56

Thank you @Helgef and @mikeyww.

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: kunkel321, Noitalommi_2, w_i_k_i_d and 66 guests