I've been starting to use classMemory to create scripts that read and write values to a flight simulator. I'm pretty new at this but it has been going OK. I am having a problem getting writeString to work. My script is trying to replace the name of a sound file with the name of a different sound file. This works when I do it manually using cheat engine and I can swap between hearing the two sounds. When I wrote my AHK script to do it automatically, I only get silence instead of the new sound. Here is the relevant line:
Code: Select all
sim.writeString(mem.BaseAddress + 0x004A2870, SJ_Spit_CanopyClose.wav, "utf-8", 0x48, 0x30, 0x0, 0x20, 0x60)
I also tried including
Code: Select all
sim.insertNullTerminator := False
Thanks for any help,
Dan