Jump to content

_Memory Problem


Recommended Posts

Hey, I don't know if it's the way I'm writing the strings or just the way I'm writing the code but it won't read/write the pointer I want properly..

$pointer = 05FC9F78
$offset = 0c

$theid = WinGetProcess("Counter-Strike")

$open = _MemoryOpen($theid)

$adress1 = _MemoryRead($pointer,$open)
$address = Hex($adress1+$offset)

So now I have the address, so I have this:

HotKeySet("{F5}", "_EditON")
HotKeySet("{F6}", "_EditOFF")
HotKeySet("{F7}", "_TestIt")
HotKeySet("{F8}", "_QuickLeave")

Which go to the functions that are supposto be editing the address, or reading, but aren't..

Which go to 2 different functions that are supposto be editing the pointer..

Func _EditON()
    _MemoryWrite($address, $open, 0)
EndFunc

Func _EditOFF()
    _MemoryWrite($address, $open, 4000)
EndFunc

Func _QuickLeave()
    _MemoryClose($open)
    Exit
EndFunc

Func _TestIt()
    $read = _MemoryRead($address, $open)
    MsgBox(0, "", $read)
EndFunc

Thanks in advance for anyone trying to help, coppa. ** And yes, I did #include <NomadMemory.au3>

Link to comment
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
 Share

  • Recently Browsing   0 members

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