So we all used [Only registered and activated users can see links. Click Here To Register...] and edited memory addresses, but how to use this in autoit you might ask?
-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 [Only registered and activated users can see links. Click Here To Register...]
Step 2: Extract "NomadMemory.au3" into your "\AutoIt3\Include" folder
Step 3: Create a basic gui in autoit
For Example:
Step 4: Find a memory address in cheatengine (or other related programs)...
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.
Step 6: Now we will make it so it opens and closes the procces to be read by useing the functions _MemoryOpen() and _MemoryClose() when we click the button
Step 7: Time to read that memory address by using the function _MemoryRead() (dont forget to save it to a variable so you can call back on the value)
Step 8: Now that the memory address value is saved to a variable we can now do what we want to it, i will simply just make it update a Label
Step 9: open up the program you wish to read value from, Conquer for me (note i have to log in), then click the button and it should read the value...now have fun
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 :p
Also Also... theres a "_MemoryWrite" functions for those interested
Also Also Also... admin privilege might be required
-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 [Only registered and activated users can see links. Click Here To Register...]
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 :p
Also Also... theres a "_MemoryWrite" functions for those interested
Also Also Also... admin privilege might be required