Help reading memory string (classMemory)

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Noblish
Posts: 28
Joined: 22 Mar 2020, 06:10

Help reading memory string (classMemory)

Post by Noblish » 30 Sep 2022, 11:15

Hello,


I need help reading a memory string. I am using classMemory :https://github.com/Kalamity/classMemory

Func: readString(address, sizeBytes := 0, encoding := "UTF-8", aOffsets*)

I'm sure the address is fine. I've tested with calc and got the string correctly. My ahk is Unicode 64bit. The app I'm working with is 32bit, is this the issue then?

Whenever I want to read a string I get those weird chars:
Image

Tested 64bit ahk with 64bit calc.exe and works
32bit ahk with either 32/64bit calc doesnt work

User avatar
boiler
Posts: 16768
Joined: 21 Dec 2014, 02:44

Re: Help reading memory string (classMemory)

Post by boiler » 30 Sep 2022, 13:11

What characters are you expecting those to be? If they are extended Unicode characters, then save your script file with “UTF-8 with BOM” encoding. If you run the script from your editor, close it and open it again after you’ve save it with that encoding.

Noblish
Posts: 28
Joined: 22 Mar 2020, 06:10

Re: Help reading memory string (classMemory)

Post by Noblish » 01 Oct 2022, 12:04

boiler wrote:
30 Sep 2022, 13:11
What characters are you expecting those to be? If they are extended Unicode characters, then save your script file with “UTF-8 with BOM” encoding. If you run the script from your editor, close it and open it again after you’ve save it with that encoding.

Thanks for your reply.
It's this I'm trying to achieve: Image

Noblish
Posts: 28
Joined: 22 Mar 2020, 06:10

Re: Help reading memory string (classMemory)

Post by Noblish » 03 Oct 2022, 12:08

bump

User avatar
boiler
Posts: 16768
Joined: 21 Dec 2014, 02:44

Re: Help reading memory string (classMemory)

Post by boiler » 03 Oct 2022, 15:16

I don't have any other suggestions. Hopefully someone else will.

Post Reply

Return to “Ask for Help (v1)”