Jump to content
Sign in to follow this  
Delta01

Memory Read help

Recommended Posts

Delta01

Hey,

I'm making a script in Halo PC to count your kills/deaths and also boot inactivate players after 10 minutes. I'm having a problem with the memory side of it, when I try to read a value (the memory address is correct) the MsgBox shows nothing.

It should be reading out how many times I've died..

#Include <mem.au3>
#Include <array.au3>
$MemAdd1 = 0x03105D9A
$var = WinGetHandle("Halo")
$Process = WinGetProcess($var)
$DllInfo1 = _MemoryOpen($Process)
$Value = _MemoryRead($MemAdd1, $DllInfo1, "int")
_MemoryClose($Process)
MsgBox(0, "Testing", $Value)

Can someone tell me what's wrong?

Thanks

Share this post


Link to post
Share on other sites
martin

Hey,

I'm making a script in Halo PC to count your kills/deaths and also boot inactivate players after 10 minutes. I'm having a problem with the memory side of it, when I try to read a value (the memory address is correct) the MsgBox shows nothing.

It should be reading out how many times I've died..

#Include <mem.au3>
#Include <array.au3>
$MemAdd1 = 0x03105D9A
$var = WinGetHandle("Halo")
$Process = WinGetProcess($var)
$DllInfo1 = _MemoryOpen($Process)
$Value = _MemoryRead($MemAdd1, $DllInfo1, "int")
_MemoryClose($Process)
MsgBox(0, "Testing", $Value)

Can someone tell me what's wrong?

Thanks

If the include mem.au3 is NomadMemory.au3 then the script looks correct to me.

Maybe you should check that WinGetHandle is successful. In fact WInGetProcess("Halo") would have saved a line.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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  

×