PixelSearch Issues!

Posts 1–4 of 4 · Page 1 of 1
PixelSearch Issues!
Ok guys.....

I am having problems with the PixelSearch.

I have my Coords of the BOX (area i want to search)
and my coords for where the mouse will click when the color is in the BOX area.....


The mouse will just click my specified area nonstop, no matter where the color i chose is....

Here is my code,


Code:
$i = 0
While $i <= 10
  $coord = PixelSearch(840, 243, 877, 595, 0xAE0C3C)
  If Not @error Then
    MouseClick("primary", 793, 670)
  EndIf
 WEnd
Maybe you've had this fixed, it has been a while, haha, anyway try this.
Code:
$i = 0
While $i <= 10
  $coord = PixelSearch(840, 243, 877, 595, 11406396)
  If Not @error Then
    MouseClick("primary", 793, 670)
  EndIf
 WEnd
Code:
$i = 0
While $i <= 10
  $coord = PixelSearch(840, 243, 877, 595, 0xAE0C3C)
  If Not (at)error Then
    MouseClick("primary", 793, 670)
	$i=11 ;break out of the while-loop
  EndIf
 WEnd
Wouldn't let me post with the (at) symbol
Add a space at wEnd
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us