Help with classMemory

Ask gaming related questions (AHK v1.1 and older)
jcvalmao
Posts: 3
Joined: 02 Feb 2023, 19:19

Help with classMemory

Post by jcvalmao » 02 Feb 2023, 19:33

Hi guys

i want creat one script for test in tutorial cheat engine pointer read value, in step 8

more my script error in begin:
"#Include <classMemory>" not working,
and
"#Include C:\Users\PC-xxx\Documents\AutoHotkey\Lib\classMemory.ahk" or "the contents of classMemory file copied directly into on script"
work, more presents the error:
C:\Users\PC-Valmí\Documents\AutoHotkey\Lib\classMemory.ahk (1) : ==> This line does not contain a recognized action.
Specifically: class _ClassMemory


where am i going wrong?

how do i fix this error?

thank you all in advance for your help and attention

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

Re: Help with classMemory

Post by boiler » 02 Feb 2023, 20:29

Are you using a very old version of AHK? What version are you using? Classes require v1.1 or later. If you’re not sure, run this script:

Code: Select all

MsgBox, % A_AhkVersion

jcvalmao
Posts: 3
Joined: 02 Feb 2023, 19:19

Re: Help with classMemory

Post by jcvalmao » 02 Feb 2023, 20:41

@boiler
hi

on run "MsgBox, % A_AhkVersion"
1.0.48.05

i used autohotkey portable version 1.0.48.05,
and recently i install win version 2.02

I don't know why the ahk is in the version 1.0.48.05
You would know?

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

Re: Help with classMemory

Post by boiler » 02 Feb 2023, 20:45

You must not have installed v1.1+, and you need to. You have two versions — one that is too old and one that is too new for the ClassMemory class. You need to download and install v1.1.36.02.

jcvalmao wrote: I don't know why the ahk is in the version 1.0.48.05
You would know?
Because the script you ran is a v1 script, so it chose your v1 version to run it instead of v2. I gave you a v1 script to see what version of v1 you have because you need an updated version of v1 to run the ClassMemory class.

jcvalmao
Posts: 3
Joined: 02 Feb 2023, 19:19

Re: Help with classMemory

Post by jcvalmao » 02 Feb 2023, 21:06

thanks for help
now is working
no more error in classMemory

i go implement scrip for tutorial step 8 cheat engine

you is show, tks tks

Post Reply

Return to “Gaming Help (v1)”