This is a basic example in AutoHotkey of a tool resembling CheatEngine's main read/write memory functions. It is very basic but covers a few of the most common ram searches.
Caution
In the case that you use this for a game, use it for offline games, I am not responsible for any misuse of this tool. It is also very likely that it may be flagged by anticheats if you target a game process.
Note
Remember that AutoHotkey is a slow interpreted programming language, the class however with no aditional code, is able to do around ~300.000 RAM reads per second on an Intel core i7 8700K. AHK-L v1 also lacks multithread support, so if you want a lightning-fast alternative consider using a compiled language solution.
This is a stripped down version of one of my EmuHook demos.
RAM Search Tool.ahkkeeps the original native AutoHotkey GUI.RAM Search Tool Neutron.ahkadds a parallel Neutron/Trident UI with the same process search, RAM scan, refresh, cancel, compare, and memory edit workflow.
- Attach to a process and open Memory Regions.
- Choose a readable region by its start, exclusive end, size, permissions, or type. For a value that changes at runtime, a private read/write region is a common starting point.
- Select Use Region in the native interface or click the start address in Neutron. This fills Offset and Size in KiB for First Search.
Offsets are relative to the process base when it can be resolved. The picker indicates when it uses absolute addresses. Use AutoHotkey v1 x64 to scan addresses above 4 GiB.
Both interfaces read in blocks and keep all matching addresses for Next Search and Refresh. Results are paged. The native UI shows 2,000 rows per page, and Neutron allows up to 5,000. Cancel keeps the results processed so far.
Run tests/MemoryScan.test.ahk with AutoHotkey v1 to verify the engine against controlled memory in its own process.

