longxx Posted June 3, 2008 Share Posted June 3, 2008 Okey I've spent long time trying to figure this out, I hope you guys can shred some light basically I am trying to read memory at certain offset, but this script seem does not work (got it from elitepvpers.com) I keep changing offset I found by Art-Money, but $mem_read never seem to give any result.... what did I do wrong? thanks. #include <GUIConstants.au3> #include <NomadMemory.au3>;because you need this for _memread functions GUICreate("My GUI Button") $Button_1 = GUICtrlCreateButton ("Check Memory Address", 10, 30, 150) $Label_1 = GUICtrlCreateLabel("(lvl)",20, 60) GUISetState () $Mem_Address = 0x0E5A02F8;the conquer memory address for current level $Process1 = WinGetProcess("Warcraft III");the window to get PID While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 $Mem_Open = _MemoryOpen($Process1);must open before you can read address $Mem_Read = _MemoryRead($Mem_Address, $Mem_Open);reads value at memory address _MemoryClose($Mem_Open);close it afterwards MsgBox(0,'',"button_1:"& $Button_1 &" label_1:"& $Label_1& " $mem_open:"& $Mem_Open & " $label_1:"&$Label_1) GUICtrlSetData($Label_1,$Mem_Read); sets label to value of read memory EndSelect Wend Link to comment Share on other sites More sharing options...
Dampe Posted June 3, 2008 Share Posted June 3, 2008 Try this. #include <GUIConstants.au3> #include <NomadMemory.au3>;because you need this for _memread functions SetPrivilege("SeDebugPrivilege", 1) GUICreate("My GUI Button") $Button_1 = GUICtrlCreateButton ("Check Memory Address", 10, 30, 150) $Label_1 = GUICtrlCreateLabel("(lvl)",20, 60) GUISetState () $Mem_Address = 0x0E5A02F8;the conquer memory address for current level $Process1 = WinGetProcess("Warcraft III");the window to get PID While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 $Mem_Open = _MemoryOpen($Process1);must open before you can read address $Mem_Read = _MemoryRead($Mem_Address, $Mem_Open);reads value at memory address _MemoryClose($Mem_Open);close it afterwards MsgBox(0,'',"button_1:"& $Button_1 &" label_1:"& $Label_1& " $mem_open:"& $Mem_Open & " $label_1:"&$Label_1) GUICtrlSetData($Label_1,$Mem_Read); sets label to value of read memory EndSelect Wend Just adding: SetPrivilege("SeDebugPrivilege", 1) 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