Probier mal diese If-Zeile:
Edit: Ich seh grad noch 'n Fehler... du liest den Offset nur einmal aus, wie soll dein Bot dann mitbekommen, daß sich der Wert ändert? Probiers so:
PHP Code:
If $Number > 1100 And $Number < 4900 Then
PHP Code:
$windowname = "NosTale"
$SPA = "2x10C81A0"
$pid = WinGetProcess($windowname) ; hier besorge ich die PID
;open the process
$ProcessInformation = _MemoryOpen($pid)
$Number = _MemoryRead($SPA, $ProcessInformation)
While WinExists($windowname)
Sleep(1000)
$Number = MemoryRead($SPA, $ProcessInformation)
If $Number > 1100 And $Number < 4900 Then
msgbox(0,"Popup","Zahl hat ein wert zwischen 1100 und 4900 erreicht!")
EndIf
WEnd