_Kurt Posted August 22, 2007 Share Posted August 22, 2007 (edited) Hey guys,Been a while since I posted on the General Help and Support subforum, but I've run into a problem that I cannot solve. Please, keep in mind I am no expert when dealing with Memory.Okay, I've been playing around with Malu's function (originally w0uter's) and Cheat Engine, and I can't get this working..I know that the address I want to read is 6FBACE09 (taken from cheat engine), but in the function it says that I need to have the address in hex format, so here's what I got:Const $AddressMaxLife = "6FBACE09" ;Const $AddressMaxLife = Hex("6FBACE09") ;Const $AddressMaxLife = 0x6FBACE09 $MemOpen = OpenProcess() If $MemOpen = 0 Then MsgBox(0,"","Error opening memory") $MaxLife = _MemoryRead($AddressMaxLife, $MemOpen, "short") ;$MaxLife = _MemoryRead($AddressMaxLife, $MemOpen, "ushort") MsgBox(0,"",$MaxLife) Func OpenProcess() Global $ProcessID = WinGetProcess("Diablo II") $MemOpen = _MemoryOpen($ProcessID) Return $MemOpen EndFuncI'm almost certain I'm doing something wrong with the address, can someone help me out or give me a push in the right direction?Thanks,KurtEDIT: Also want to add in that the value type of the address is 2bytes Edited August 22, 2007 by _Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
Bert Posted August 22, 2007 Share Posted August 22, 2007 _StringToHex perhaps? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
_Kurt Posted August 22, 2007 Author Share Posted August 22, 2007 Good idea, but doesn't work. I know I'm doing something wrong here.. ARG Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
Bert Posted August 22, 2007 Share Posted August 22, 2007 You changed the memory address string to hex, and it doesn't work... You got me on this one. Does the cheat engine have a way of converting the address to hex? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
_Kurt Posted August 22, 2007 Author Share Posted August 22, 2007 Arg, I'm stumped, I'm give malu a PM, he seems to know what he's doing. Thanks anyway! Kurt Awaiting Diablo III.. Link to comment Share on other sites More sharing options...
Zedna Posted August 22, 2007 Share Posted August 22, 2007 As I can see another MEM examples this way should be the right: Const $AddressMaxLife = 0x6FBACE09 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
pixellegolas Posted August 23, 2007 Share Posted August 23, 2007 Where can i find documentation about these commands? When i search in help file i can't find anything about memory reading. Link to comment Share on other sites More sharing options...
Zedna Posted August 24, 2007 Share Posted August 24, 2007 Where can i find documentation about these commands? When i search in help file i can't find anything about memory reading.Search on forum.For example _MemRead Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now