have a look on http://www.autohotke...pic.php?t=13331 , please.
I tried
PixelSearch, 50, 50, 400, 400, 0x123456, 0, Fast if ErrorLevel = 0 { MsgBox, Found } Else { MsgBox, Errorlevel %Errorlevel% } PixelSearch, X, Y, 50, 50, 400, 400, 0x123456, 0, Fast if ErrorLevel = 0 { MsgBox, Found } Else { MsgBox, Errorlevel %Errorlevel% } PixelSearch, , , 50, 50, 400, 400, 0x123456, 0, Fast if ErrorLevel = 0 { MsgBox, Found } Else { MsgBox, Errorlevel %Errorlevel% }Exit
First one sets ErrorLevel to 0, second and third one to 1 (as should!)
Bug or not bug :?: