The thing is, with for example the DragQueryFile function if i don't specify A or W like so:If no function can be found by the given name, an A (ANSI) or W (Unicode) suffix is automatically appended based on which version of AutoHotkey is running the script. For example, "MessageBox" is the same as "MessageBoxA" in ANSI versions and "MessageBoxW" in Unicode versions.
Code: Select all
DllCall("Shell32.dll\DragQueryFile".....
I know i can do something like ~
Code: Select all
DragQueryFile := "Shell32.dll\DragQueryFile" . (A_IsUnicode ? "W" : "A")
DllCall(DragQueryFile.....
My executable is AutoHotKey Unicode 64-Bit.