how do I break the loop if my program is stuck in it without exiting the whole program?
i just want it to start from the beginning of the code here is my program
While 1
$picture = "target.png"
$result = _ImageSearch($picture,1,$x1,$y1,0,0)
If $result = 1 Then
Send("{4}")
MouseClick("left",$x1,$y1,1,1)
Sleep(2000)
Do
$picture2 = "status.png"
$result2 = _ImageSearch($picture2,1,$x1,$y1,0,0)
Send("{2}")
Send("{1}")
Until $result2 = 1
as you see if my program doesnt detect or see picture2 then the loop wont stop.