Hier mal eine _isInArea Funktion, weil es einige vllt. noch nicht verstanden haben bzw. eine kompliziertere Methode wählen...
Viel Spaß damit!
Mit freundlichen Grüßen
ValvePro
PHP Code:
#include<NomadMemory.au3>
msgbox("","",_isInArea("Guild Wars",0x00A05650,0x00A05654,-10465,2668,200000))
func _isInArea($Hwnd,$XSpeicher,$YSpeicher,$X,$Y,$Range)
$Process = _MemoryOpen(WinGetProcess($Hwnd))
$XPos = Floor(_MemoryRead($XSpeicher, $Process, 'float'))
$YPos = Floor(_MemoryRead($YSpeicher, $Process, 'float'))
_MemoryClose($Process)
if($XPos > $X-$Range and $XPos < $X+$Range and $YPos > $Y-$Range and $YPos < $Y+$Range) then return True
return False
EndFunc
Viel Spaß damit!
Mit freundlichen Grüßen
ValvePro