$check = 0
GETSCREEN
IF_PICTURE_IN (0,0, $_xmax,$_ymax, "1.bmp", -1, 100)
$check = 1
ELSE
IF_PICTURE_IN (0,0, $_xmax,$_ymax, "2.bmp", -1, 100)
$check = 1
ELSE
IF_PICTURE_IN (0,0, $_xmax,$_ymax, "3.bmp", -1, 100)
$check = 1
END_IF
END_IF
END_IF
IF_PICTURE_IN (0,0, $_xmax,$_ymax, "4.bmp", -1, 100)
$check = 2
ELSE
IF_PICTURE_IN (0,0, $_xmax,$_ymax, "5.bmp", -1, 100)
$check = 2
ELSE
IF_PICTURE_IN (0,0, $_xmax,$_ymax, "6.bmp", -1, 100)
$check = 2
END_IF
END_IF
END_IF
IF($check = 1)
// X
END_IF
IF($check = 2)
// Y
END_IF
WAITMS(50)