This works as expected:
Code: Select all
fn := Func("FnA").Bind(0)
Hotkey("NumpadAdd", fn)
Return
FnA(num := 0)
{
MsgBox(num)
}
Code: Select all
Hotkey("NumpadAdd", Func("FnA").Bind(0))
Return
FnA(num := 0)
{
MsgBox(num)
}
Code: Select all
fn := Func("FnA").Bind(0)
Hotkey("NumpadAdd", fn)
Return
FnA(num := 0)
{
MsgBox(num)
}
Code: Select all
Hotkey("NumpadAdd", Func("FnA").Bind(0))
Return
FnA(num := 0)
{
MsgBox(num)
}
(my bold)Hotkey - label wrote:If not a valid label name, this parameter can be the name of a function, or a single variable reference containing a function object. For example, Hotkey(funcobj, "On"). Other expressions which return objects are currently unsupported.
Code: Select all
Hotkey("a", Func("FnA").Bind(0))
Users browsing this forum: No registered users and 82 guests