#include "ImageSearch.au3" $x1 = 0 $y1 = 0 $picture = "d:\3-18-2018_2-58-24_PM.png" Do $result = _ImageSearch($picture, 1, $x1, $y1, 0) ;_ImageSearch($findImage, $resultPostion, ByRef $x, ByRef $y, $transparency = 0) ConsoleWrite($result) Until $result = 1 ; If $result = 1 Then MouseMove($x1, $y1, 50) Else MsgBox(0, "MSG", "End") EndIf