I didn't thoroughly check the forums, but I didn't see anything about it in the _H forum anyway. Originally, I had tried sending varadic parameters via DllCall, which didn't work, and I'm assuming there's not a way to get that working. But, I just noticed that you can't use ahkPostFunction on a function that uses a varadic parameter. I tried and it crashed. So then I compromised and tried using something like
func(var,o1:="",o2=""). That also doesn't work; say if you send it 2 parameters, the third (o2) will contain "Str". If you leave two optional parameters blank, it will crash. I finally settled for
func(var,o1,2) and just sent blank/empty variables when they weren't needed.
My question is: is this unavoidable? Could varadic/optional function parameters possibly work?