Jump to content
Sign in to follow this  

Memory read and add value

Recommended Posts


I have been playing around with some new stuff how would you scan a memory address say 0x07000000 and then increase by 1 and scan again I have been trying

Func search()
    $second = IniRead(@ScriptDir & "\config.ini", "Key", "51", "")
    $com = _MemoryRead($second, $ID, "Char[30]")
    If $com = $name Then
        $third =  $second + 240  ; <<<<<<< Should give me my final address address
        MsgBox(0, "", $third)
        $third1 = $second + 1 ; <<<<<<< trying to add to address here but not working
        $forth = IniWrite(@ScriptDir & "/config.ini", "Key", "51", $third1)

This is in a loop, but when I check the file instead of 0x07000000 and increasing Key 51 becomes 00000001 and increases to 0000000A and then resets to 00000001 and on and on. So why is it taking out the 0x and the 07 < in the address and why will it not advance past 0000000A, I hope you can understand what I am saying here not sure if I explained it correctly. so if done correctly it should write to ini file 0x07000001 then 0x07000002 and so on till it gets to 0x07ad0078 eventually

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...