test this
Code:
Func check()
$check = _imagesearch("check.png", 1, $checkx, $checky, 100)
If $check = 1 Then
Send("1")
MsgBox(0, "Image", "Image Found.")
Else
Send("2")
MsgBox(0, "Image", "Image not Found.")
EndIf
EndFunc
if the image wasnt found try to increase the value 100 in this line by a very small amount and try again
$check = _imagesearch("check.png", 1, $checkx, $checky, 100)
and the script now does if u press 3 the script searchs for the image and if the image is found he send the 1 button and if not he sends 2