Code:
$location = PixelSearch(0 ,0 ,1024 ,768 , 0x2E4A44, 50, 1)
	MouseClick("left", $location[0], $location[1], 1, 100)
	Sleep(2500)
	MouseMove(746,358)
	MouseClick("Left")
While @error = 0
	$location = PixelSearch(0 ,0 ,1024 ,768 , 0x2E4A44, 50, 1)
	MouseClick("left", $location[0], $location[1], 1, 100)
	Sleep(2500)
	MouseMove(746,358)
	MouseClick("Left")
WEnd
My problem is that the search location finds what its looking for, but the MouseClick option does not actually click the $location x,y that is found. The long Sleep is so I can stop the program when it glitches and starts randomly clicking...

Any help is much appreciated.