kennyvo Posted February 22, 2009 Share Posted February 22, 2009 (edited) I use CE to find the pointer and I get results like thisPointer: ElementClient.exe+5C7A54Offset: 28my codeexpandcollapse popup#include <NomadMemory.au3> SetPrivilege("SeDebugPrivilege", 1) ... $pid = WinGetProcess($handle) $openmem = _MemoryOpen($pid) $offset = Dec("5C7A54") $baseADDR = _MemoryGetBaseAddress($openmem, 1);Return 3276800 $FinalStatic = "0x" & Hex($baseADDR + $offset);Return 0x008E7A54 $final_value=_MemoryRead($FinalStatic,$openmem);Return 389 Func _MemoryGetBaseAddress($ah_Handle, $iHexDec = 0) Local $iv_Address = 0x00100000 Local $v_Buffer = DllStructCreate('dword;dword;dword;dword;dword;dword;dword') Local $vData Local $vType If Not IsArray($ah_Handle) Then SetError(1) Return 0 EndIf DllCall($ah_Handle[0], 'int', 'VirtualQueryEx', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer)) If Not @Error Then $vData = Hex(DllStructGetData($v_Buffer, 2)) $vType = Hex(DllStructGetData($v_Buffer, 3)) While $vType <> "00000080" DllCall($ah_Handle[0], 'int', 'VirtualQueryEx', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer)) $vData = Hex(DllStructGetData($v_Buffer, 2)) $vType = Hex(DllStructGetData($v_Buffer, 3)) If Hex($iv_Address) = "01000000" Then ExitLoop $iv_Address += 65536 WEnd If $vType = "00000080" Then SetError(0) If $iHexDec = 1 Then Return Dec($vData) Else Return $vData EndIf Else SetError(2) Return 0 EndIf Else SetError(3) Return 0 EndIf EndFuncbut in game it is different. who have to help me to find the corect add? Edited February 22, 2009 by kennyvo Link to comment Share on other sites More sharing options...
kennyvo Posted February 22, 2009 Author Share Posted February 22, 2009 nobody can help me ???? Link to comment Share on other sites More sharing options...
ChangMinYang Posted February 22, 2009 Share Posted February 22, 2009 (edited) I use CE to find the pointer and I get results like this Pointer: ElementClient.exe+5C7A54 Offset: 28 my code #include <NomadMemory.au3> SetPrivilege("SeDebugPrivilege", 1) ... $pid = WinGetProcess($handle) $openmem = _MemoryOpen($pid) $offset = Dec("5C7A54") $baseADDR = _MemoryGetBaseAddress($openmem, 1);Return 3276800 $FinalStatic = "0x" & Hex($baseADDR + $offset);Return 0x008E7A54 $final_value=_MemoryRead($FinalStatic,$openmem);Return 389 Edited February 22, 2009 by DllParse 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