Joa kann sein. Ansich ist es egal, da es eh nur Bezeichnungen sind.
Bin mal gespannt was ihr schönes posted :)
Bin mal gespannt was ihr schönes posted :)
#include <nomadmemory.au3>
$pid = ProcessExists("Gw.exe")
$hpid = _MemoryOpen($pid)
$x1=_memoryread(0x00A1372F,$hpid)
$y1=_memoryread(0x00A13733,$hpid)
winactivate("Guild Wars")
winwaitactive("Guild Wars")
send("{w down}")
sleep(1000)
send("{w up}")
$x2=_memoryread(0x00A1372F,$hpid)
$y2=_memoryread(0x00A13733,$hpid)
$s1=(($x2-$x1)*($x2-$x1))+(($y2-$y1)*($y2-$y1))
winactivate("Guild Wars")
send("{a down}")
sleep(1000)
send("{a up}")
send("{w down}")
sleep(1000)
send("{w up}")
$x3=_memoryread(0x00A1372F,$hpid)
$y3=_memoryread(0x00A13733,$hpid)
$s2 =(($x3-$x2)*($x3-$x2))+(($y3-$y2)*($y3-$y2))
$s3= (($x3-$x1)*($x3-$x1))+(($y3-$y1)*($y3-$y1))
$pi = 3.14159265358979
$radToDeg = 180 / $pi
$winkel = acos((($s2*$s2)+($s1*$s1)-($s3*$s3))/(2*$s2*$s1))* $radToDeg
msgbox(0,"grad",$winkel)
msgbox(0,"acos",(($s2*$s2)+($s1*$s1)-($s3*$s3))/(2*$s2*$s1))