举报
LZ应该使用循环吧 afan 发表于 2009-9-12 10:43
#include <ImageSearch.au3> Dim $x1, $y1, $s1 = 0, $s2 = 0 While 1 Sleep(100) If $s1 <> 1 Then $result = _ImageSearch("城镇路径1.bmp", 1, $x1, $y1, 0) If $result = 1 Then MouseClick("left", $x1, $y1, 1) $s1 = 1 Else ContinueLoop EndIf EndIf If $s2 <> 1 Then $result2 = _ImageSearch("城镇路径2.bmp", 1, $x1, $y1, 0) If $result2 = 1 Then MouseClick("left", $x1, $y1, 1) $s2 = 1 Else ContinueLoop EndIf EndIf ExitLoop WEnd
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-3-13 05:18 , Processed in 0.097758 second(s), 19 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.