-I will give you a simple walkthrough script and required files for this to work in autoit
Files in RED are included in the .rar file
Code in PINK is newly added
Step 1: Have
Step 2: Extract "NomadMemory.au3" into your "\AutoIt3\Include" folder
Step 3: Create a basic gui in autoit
For Example:
Code:
[COLOR="Magenta"]#include <GUIConstants.au3> GUICreate("My GUI Button") = GUICtrlCreateButton ("Check Memory Address", 10, 30, 150) GUISetState () While 1 = GUIGetMsg() Select Case = ExitLoop Case = EndSelect Wend[/COLOR]
for this i will be using one i have already found for conquer "0x004EC1E8" (current level)
Step 5: In your autoit script add "#include <NomadMemory.au3>" into you include region AND declare a variable to a memory address and the PID (Process ID) of the window you want to get the memory address from, [Conquer2.0] for me.
Code:
#include <GUIConstants.au3> [COLOR="Magenta"]#include <NomadMemory.au3> ;because you need this for _memread functions[/COLOR] GUICreate("My GUI Button") = GUICtrlCreateButton ("Check Memory Address", 10, 30, 150) GUISetState () [COLOR="magenta"] = 0x004EC1E8 ;the conquer memory address for current level = WinGetProcess("[Conquer2.0]") ;the window to get PID[/COLOR] While 1 = GUIGetMsg() Select Case = ExitLoop Case = EndSelect Wend
Code:
#include <GUIConstants.au3> #include <NomadMemory.au3> ;because you need this for _memread functions GUICreate("My GUI Button") = GUICtrlCreateButton ("Check Memory Address", 10, 30, 150) GUISetState () = 0x004EC1E8 ;the conquer memory address for current level = WinGetProcess("[Conquer2.0]") ;the window to get PID While 1 = GUIGetMsg() Select Case = ExitLoop Case = [COLOR="Magenta"] = _MemoryOpen();must open before you can read address _MemoryClose();close it afterwards[/COLOR] EndSelect Wend
Code:
#include <GUIConstants.au3> #include <NomadMemory.au3> ;because you need this for _memread functions GUICreate("My GUI Button") = GUICtrlCreateButton ("Check Memory Address", 10, 30, 150) GUISetState () = 0x004EC1E8 ;the conquer memory address for current level = WinGetProcess("[Conquer2.0]") ;the window to get PID While 1 = GUIGetMsg() Select Case = ExitLoop Case = = _MemoryOpen() ;must open before you can read address [COLOR="Magenta"] = _MemoryRead(, ) ;reads value at memory address[/COLOR] _MemoryClose() ;close it afterwards EndSelect Wend
Code:
#include <GUIConstants.au3> #include <NomadMemory.au3> ;because you need this for _memread functions GUICreate("My GUI Button") = GUICtrlCreateButton ("Check Memory Address", 10, 30, 150) [COLOR="magenta"] = GUICtrlCreateLabel("(lvl)",20, 60)[/COLOR] GUISetState () = 0x004EC1E8 ;the conquer memory address for current level = WinGetProcess("[Conquer2.0]") ;the window to get PID While 1 = GUIGetMsg() Select Case = ExitLoop Case = = _MemoryOpen() ;must open before you can read address = _MemoryRead(, ) ;reads value at memory address _MemoryClose() ;close it afterwards [COLOR="Magenta"]GUICtrlSetData(,) ; sets label to value of read memory[/COLOR] EndSelect Wend
Side note: some memory address will somtimes be text or other formats (instead of the defualt 4-byte) thus you will need to declare them, read more into this in the "NomadMemory.au3" file
Also: i dont take credit for "NomadMemory.au3" and would like to give props to Nomad, wOuter, Autoit team, cheatengine team, and people i read posts from
Also Also... theres a "_MemoryWrite" functions for those interested
Also Also Also... admin privilege might be required