viewtopic.php?t=23494#p110511
Code: Select all
ExtractText(content, "test.docx")
MsgBox, % content
ExtractText(ByRef OutputVar, Filename) {
static hModule := DllCall("LoadLibrary", "Str", "xd2txlib.dll", "Ptr")
fileLength := DllCall("xd2txlib\ExtractText", "Str", Filename, "Int", False, "Int*", fileText)
OutputVar := StrGet( fileText, fileLength / 2 )
}