Seagul Posted November 3, 2009 Share Posted November 3, 2009 (edited) I'm new to understanding these arrays, so here's what I have very basic, still need to compare the distance in each array. $a1 = 0 $b1 = 0 $target = _ImageSearchArea("target.gif", 0, $x1, $y1, $x2, $y2, $a1, $b1, 35) $shiptarget = _ImageSearchArea("ship.gif", 0, $x1, $y1, $x2, $y2, $sx1, $sy1, 35) $distance = Sqrt((Abs($a1 - $sx1)) ^ 2 + (Abs($b1 - $sy1)) ^ 2) $array[$icount] = $a1 & $b1 If $target = 1 & $distance >= 400 Then $icount = $icount + 1 MouseMove($array[$icount], 0) MouseDown($Click) Sleep(100) MouseUp($Click) Call("FindGlitter") EndIf Edited November 3, 2009 by Seagul Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now