Here is an example AutoIt script that monitors memory offsets in the wow.exe process:
#include <Memory.au3>
Global $sProcess = "wow.exe"
Global $iOffset1 = 0x12345678 ; Replace with your desired offset
Global $iOffset2 = 0x87654321 ; Replace with your desired offset
Local $aProcesses = ProcessList($sProcess)
If IsArray($aProcesses) Then
Local $iPID = $aProcesses[1][1]
Local $hProcess = _MemoryOpen($iPID)
While ProcessExists($iPID)
Local $iValue1 = _MemoryRead($iOffset1, $hProcess)
Local $iValue2 = _MemoryRead($iOffset2, $hProcess)
ConsoleWrite("Offset 1 Value: " & $iValue1 & @CRLF)
ConsoleWrite("Offset 2 Value: " & $iValue2 & @CRLF)
Sleep(1000) ; Sleep for 1 second before checking again
WEnd
Else
MsgBox(16, "Error", "wow.exe process not found!")
EndIf
Replace the $iOffset1
and $iOffset2
variables with the specific memory offsets you want to monitor. Keep in mind that game developers often take measures to prevent memory scanning and manipulation, so you will need to be careful and avoid doing anything that could be seen as cheating or exploiting the game.