I've condensed it down into a small readable script, therefore this won't have much context, but it seems that if I want to call a function via reference using .Call(), I have to pass an argument, or it simply won't execute the function. Why is that?
If this script is run, the first call will show the messagebox, but the second one won't, even though an argument isn't required by the function.
Code: Select all
Class TestClass {
TestFunction() {
Msgbox, Function Triggered
}
}
fnc := Func("TestClass.TestFunction")
fnc.Call(test) ; Calls and shows messagebox
fnc.Call() ; Doesn't seem to call at all