What i did was made a conditional searching function which means if the target circle is in left of screen, press and hold "a" until the target circle is in the centre of the screen. or if the target circle is in the right of the screen, press and hold "d" until the target circe is in the centre of the screen..
i.e
Code:
If pixelsearch(Left half of screen area coordinates, target circle color) = True Then
Send("{a down}")
While 1
If Pixelsearch(Centre "in front of character" area coordinates, Target circle color) = True Then
Send("{a up}")
Endif
Wend
Endif
Hope this helps
Also, the blue target circle can vary in color quite alot, so in the "shade variation" option in the Pixelsearch(x1,y1,x2,y2, blue color, shade variation)
i made mine 50.
The blue color i use is 0x0304F1 with a shade variation of 50 and i havent had a problem yet