Help me with some pixelsearch and coordonates functins

12/01/2013 15:52 CantShutMyMouth#1
[Only registered and activated users can see links. Click Here To Register...]


so i have this image.


PHP Code:
$x=PixelSearch(8,164,660,480,0x000000//to find that black line
$y=PixelSearch(8,164,660,480,0x01A0E6// to find the light-blue ball ( from the top) 

But, i want to put the mouse in the back of the Dark-Blue ball , in line with the 2 balls. Something like at a game of ''8-ball pool", so it will send the Dark-Blue ball in the Light Blue Ball.

and then, there is another problem. how to get the center of the light-blue one?


If the ball is perfect round, i found how to find its center:

PHP Code:
$x=PixelSearch(8,164,660,480,0x00A2E8)
$y=PixelSearch(660,480,8,164,0x00A2E8)
MouseMove(($x[0]+$y[0])/, ($x[1]+$y[1])/2

But i still dont get it how to make that line to the first ball and put the mouse near the ball, so they will hit.
12/01/2013 21:38 elmarcia#2
I think you want something like this? or... correct me if i am wrong

12/08/2013 17:35 CantShutMyMouth#3
yes, thx :D