Ich habe nen paar Dinge rausgelöscht, deshalb nicht über xx-Variablen wundern ... .
Code:
#include <nomadmemory.au3>
Global $MapPos, $CurrentPosX, $CurrentPosY, $PosX, $PosY, $PID, $hprocess, $CheckMap, $CourseStat, $Death, $dll, $Map, $GTime
$PosX = 0x------
$PosY = 0x------
$PID = ProcessExists("Gw.exe")
$hprocess = _MemoryOpen($PID)
ProcessWait("gw.exe")
$hpid = _MemoryOpen(ProcessExists("gw.exe"))
HotKeySet("{F1}","_check")
HotKeySet("{END}","_exitit")
while 1
sleep(10)
WEnd
; y<y x<x
Func _check()
$CurrentPosX = _MemoryRead($PosX, $hprocess)
$CurrentPosY = _MemoryRead($PosY, $hprocess)
MsgBox(0,"X-Wert",$CurrentPosX)
MsgBox(0,"Y-Wert",$CurrentPosY)
EndFunc
Func _exitit()
exit
EndFunc