I'm a beginner programmer looking to create a program that reads a specific value from a game app's memory, then stores that data in a database. Ideally, my program should also identify when a new chat notification appears, extract the relevant content, filter it, and save it for later use. What programming topics and skills should I focus on to accomplish this?
2 Answers
To directly access another app's memory, Windows provides the 'ReadProcessMemory' function. Keep in mind, though, that you'll need to deal with permissions, especially if the app you’re targeting is running as an administrator. You'll also want to learn about how to find the right memory addresses and pointers—this can be a bit of a maze, especially since these addresses can change. Good luck!
Just FYI, accessing memory can lead to crashes or data corruption, so just proceed with caution!
Reading the memory of another app can be tricky because operating systems like Windows usually prevent this kind of access for security reasons. There are ways to do it, like using low-level APIs and possibly creating a driver, but you’ll need administrator rights to access another app’s memory safely. You might need to look into pointers and how to reliably locate a memory address that doesn’t change much. It's a more complex task than it sounds, so be prepared for some challenges!
Thanks for the tip! I'll definitely check out that API.