So i'm trieng to make a pixelsearch function instead of a imagesearch function due having problems
so what i'm trieng to do is get a pixex from the coordinates of this
what i got is this
; Function: detect_cought() ; Description: Checks if battle sequence has begun ; detect_cought(){ CoordMode, Pixel, Screen Loop { PixelSearch, X, Y, 0, 0, %A_ScreenWidth%, %A_ScreenHeight% if (ErrorLevel=0) { return, 1 } else { return, 0 } } }
;Function: detect_window() ; Description: Checks if battle sequence has begun ; detect_window(){ ImageSearch barrowx, barrowy, 0, 0, 1920, 1080, *25 Lib/cought.png if (ErrorLevel=0) { return, 1 } else { return, 0 } }