AutohotkeyH Documentation wrote:You can change order of parameters using an object declaration. So in following example when calling the function first parameter is wParam and second Msg.
DynaCall("SendMessage",["t=tuitt",3,2],hwnd,WM_ACTIVATE:=0x06)
Code: Select all
dynaToken := DynaCall("MessageBox", "ui=tssui"
, hwnd := 0
, Text := "Hello"
, title := "Title"
, Type := 0x4000)
dynaToken.() ; works as expected
dynaToken := DynaCall("MessageBox", ["ui=tssui", 3, 2, 1, 4]
, Text := "Hello"
, title := "Title"
, hwnd := 0
, Type := 0x4000)
dynaToken.() ; order of parameters not changed