Hello everyone, I am trying to pixelsearch for the top left of a box but the color varies a lot. The normal variation of pixelsearch does not work for this due to such big differences so i tried doing multiple pixel searches and then MIN the X and Y but i can't get it to work. Can anyone see whats going wrong with my code? Ignore the color, im writing this as an example.
Code: Select all
Pixelsearch, Colx1, Coly1, 10, 10, 1000, 1000, Color, 5, Fast
Pixelsearch, Colx2, Coly2, 10, 10, 1000, 1000, Color, 5, Fast
Pixelsearch, Colx3, Coly3, 10, 10, 1000, 1000, Color, 5, Fast
X:= Min(Colx1,Colx2,Colx3)
Y:= Min(Coly1,Coly2, Coly3)
Msgbox, %X%,%Y%
Mousemove, X, Y
The msgbox is blank and no mouse movement. I cant figure out how to get the X and Y coords of each color into the mins. If there is a more efficient way of doing it please advice also. Thanks.