Should that be a certain part of the code is repeated an infinite number of times until the screen displays a certain image, and it is this part of the code should be repeated endlessly until poyaleniya Pictures: Like.  And then did not come back to the beginning of the code $refresh = _ImageSearch("refresh.bmp",1,$x,$y,1) if $refresh = 1 Then MouseClick("left",$x,$y,1,1) Sleep(1000) $news = _ImageSearch("news.bmp",1,$x,$y,1) If $news = 1 Then MouseClick("left",$x,$y,1,0) Sleep(1200) $like = _