While True
ifb CHKIMGX("ABC_image/A.bmp", winid, x1, y1, x2, y2, Detect_num, Threshold_delta, Target_color)
print "Aを発見"
attack_x=g_imgx_x
attack_y=g_imgx_y-windowflamesize
CMD = "cd C:\Program Files (x86)\Nox\bin & nox_adb shell input touchscreen tap " + (attack_x) + " " + (attack_y)
print CMD
DOSCMD(CMD)
sleep(1)
elseif CHKIMGX("ABC_image/B.bmp", winid, x1, y1, x2, y2, Detect_num, Threshold_delta, Target_color)
print "Bを発見"
deffence_x=g_imgx_x
deffence_y=g_imgx_y-windowflamesize
CMD = "cd C:\Program Files (x86)\Nox\bin & nox_adb shell input touchscreen tap " + (deffence_x) + " " + (deffence_y)
print CMD
DOSCMD(CMD)
sleep(1)
elseif CHKIMGX("ABC_image/C.bmp", winid, x1, y1, x2, y2, Detect_num, Threshold_delta, Target_color)
print "Cを発見"
CMD = "cd C:\Program Files (x86)\Nox\bin & nox_adb shell input touchscreen tap " + (185) + " " + (330)
//ここだけ座標でタップしようとしています。
print CMD
DOSCMD(CMD)
sleep(1)
else
print "画像が見つかりません"
endif
sleep(3.5)
Wend
以上です。失礼しました。