Jump to content


Pixelsearch problem


  • Please log in to reply
1 reply to this topic

#1 Guests

  • Guests

Posted 20 August 2012 - 06:32 PM

Hello guys, I have a script like this that search and click a pixel.

CoordMode, Pixel, Screen
CoordMode, Mouse, Screen


PixelSearch, Px, Py, 648, 133, 1134, 550, A07838, 3, Fast
if ErrorLevel
    MsgBox, That color was not found in the specified region.
else
    MsgBox, A color within 3 shades of variation was found at X%Px% Y%Py%.

MouseClick, left,  %Px%, %Py%

It worked in the past but if I run it now it returns and clicks the coordinates of a black pixel (000000). Why does it happen?

#2 girlgamer

girlgamer
  • Moderators
  • 2039 posts

Posted 20 August 2012 - 06:55 PM

PixelSearch, Px, Py, 648, 133, 1134, 550, [color=#FF0000]0x[/color]A07838, 3, Fast