Say I have an array:
Code: Select all
arr:=["MessageBox", "Int", "0", "Str", "Press Yes or No", "Str", "Title of box", "Int", 4]
Code: Select all
WhichButton:=DllCall("MessageBox", "Int", "0", "Str", "Press Yes or No", "Str", "Title of box", "Int", 4)
Code: Select all
DynamicDll(args){
if (args.length =3) {
ret := DllCall(args[0],args[1],args[2])
} else if (args.length = 5) {
ret := DllCall(args[0],args[1],args[2],args[3],args[4])
} ;... and so on
return [ret,args]
}
And finally I assume it would be plausible to write (equivalent) code in C#/VB.Net and use CLR to execute said code.... It's pretty indirect but it has it's benefits - no need to install AHK_H.