
msgbox % calc.readstring(0x2af1a10,0,"utf-8")
0x2af1a10 When this address is read, "abcdefghuikl = 한글테스트" should be output.
However, classmemory output the Korean string as abcdefghuikl = ??????????
What can I do to resolve this?
Thank you, but I am asking for encoding errors in classmemory onlygregster wrote:Which file encoding are you using for your AHK script file? https://autohotkey.com/docs/FAQ.htm#nonascii
I do not know what this is, but maybe try msgbox % calc.readstring(0x2af1a10,0,"utf-16")msgbox % calc.readstring(0x2af1a10,0,"utf-8")
If the memory address is Unicode, it will be output normally, but unfortunately it is ASCII code.Helgef wrote:I do not know what this is, but maybe try msgbox % calc.readstring(0x2af1a10,0,"utf-16")msgbox % calc.readstring(0x2af1a10,0,"utf-8")
Cheers.
This is not difficult.Helgef wrote:Do you run your script with Unicode or ANSI build?
If you can provide a script which reproduces your problem you are more likely to receive help.
Cheers.
Code: Select all
calc := new _ClassMemory("ahk_exe program.exe", "", hProcessCopy)
msgbox % calc.readstring(address,0)
Users browsing this forum: 555frost555, mor61, r2997790, tonkomnom and 53 guests