Sign in to follow this  
Followers 0
lysander

Problem reading a direct address from memory

6 posts in this topic

#1 ·  Posted (edited)

#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

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

¿Some ideas please?

yes, you can read this Forum Rules

I`m sorry but we can`t post anything related to games here..

Edited by monoscout999

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

¿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.

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0