#include $x1=0 $y1=0 $picture = "Desktop\chest.jpg" Do $result = _ImageSearch($picture, 1, $x1, $y1, 0, 0) ConsoleWrite($result) Until $result = 1 If $result = 1 Then MouseMove($x1, $y1, 50) Else MsgBox (0, "MSG", "End") EndIf