it should show the Max HP but i only get weared numbers
Code:
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.0.0
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <NomadMemory.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 445, 192, 124)
$Hp = GUICtrlCreateLabel("", 160, 48, 120, 20)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Global $dll = "Game.dll"
Global $PID = ProcessExists("AION.bin")
Global $Offset = Dec("8EEEBC")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
AionMemoryRead()
WEnd
Func AionMemoryRead()
$dllbase = _MemoryModuleGetBaseAddress($PID, $dll)
$rechnung = "0x" & Hex($dllbase + $Offset)
$MemOpen = _MemoryOpen($PID)
$MemRead = _MemoryRead($rechnung, $MemOpen)
_MemoryClose($MemOpen)
$b = Hex($dllbase)
GUICtrlSetData($Hp, $MemRead)
EndFunc
thanks
EDIT: It seems $dllbase = _MemoryModuleGetBaseAddress($iPID, $dll) only returns 0. Why i dont find the error
UPDATE: It works if i start it in x86 mode






