Jump to content
Sign in to follow this  
RooTMasteR

Memory reading

Recommended Posts

RooTMasteR

i am trying to access a value in a memory location

i used some software to locate the memory address that holds the value i need

i used some code from this forum i found to access the memory location and display the value

each time the program finds no value, yet i can see the value using the other program

Can anyone help me pls, im new to the whole memory location thing, sorry.

#include 'nomadmemory.au3'
$i_Address = 01C490A4
$i_pid = ProcessExists('process.exe')
$v_Open = _MemoryOpen($i_pid)
While 1
    $MemRead_results = _MemoryRead($i_Address, $v_Open)
    If $MemRead_results = '' Then
        MsgBox(4096,'Error','No good. Result = '& $MemRead_Results)
        _MemoryClose($v_Open)
        Exit
    Else
        ToolTip($MemRead_results)
        Sleep(5000)
    EndIf
WEnd
_MemClose($v_Open)
Exit
Edited by RooTMasteR

Share this post


Link to post
Share on other sites
RooTMasteR

Please read the forum rules. Discussion of game automation isn't allowed.

sorry, my mistake. edited. Edited by RooTMasteR

Share this post


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

×