[Only registered and activated users can see links. Click Here To Register...]
so i have this image.
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:
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.
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])/2 , ($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.