Jump to content

Problem reading a direct address from memory


Recommended Posts

#include "NomadMemory.au3"

$ExecutableName = "Soundforge.exe"
;The pointer or direct address of the variable you're getting from memory. Remember to include "0x" at the beginning of your hex address.
$pointer = "0x04D307E0"

;The offset, or 0x0 if the pointer is a direct address
$GameDataOffset = "0x0"

;This attaches to the process
$list = ProcessList($ExecutableName)
$ProcessID = $list[1][1]
$handle = _MemoryOpen($ProcessId)

;This reads the data from the pointer and converts it to a hex address.
$readPtr = "0x" & Hex(_MemoryRead($pointer, $handle, "int[32]"),8)

$DataAddress = $pointer
$Data = _MemoryRead($DataAddress, $handle, "char[16]")

_MemoryClose($handle)

MsgBox(0, "", $Data)

im trying to read that address and use it in a msg. ¿Some ideas please?

The address is a number, like 150,151,152...

<Address>04D307E0</Address>
Edited by lysander
Link to comment
Share on other sites

so... my post is about a game? i didnt know it

the script is copy & paste about one i found in google. it wasnt my intention to break the rules

Its truth that it can confuse for the variables of &game, but is that, a script from google. I didnt find info in autoitscript.com or examples about reading direct address, just "pointers" or something like that.

im just trying to find another way to solve this problem (another thread made by me)

¿can i fix the first post to get a answer? Or just give me some example of that please.

Seriously, sorry again, but its the truth

Edited by lysander
Link to comment
Share on other sites

  • Developers

¿can i fix the first post to get a answer? Or just give me some example of that please.

Seriously, sorry again, but its the truth

Read the forum rules and simply comply .... but topics are closed.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...