按键精灵找色然后按键的脚本一直出错~高手帮我看看顺便完善一下拜托了~

2025-01-07 09:07:37
推荐回答(2个)
回答1:

MoveTo 436, 437
Delay 300
LeftClick 1
r=0

While r < 13
c1 = GetPixelColor(537, 364)
c2 = GetPixelColor(482, 384)
c3 = GetPixelColor(510, 369)
c4 = GetPixelColor(524, 398)

If c1 = "D7F3EF" or c2 = "978451" or c3 = "978451" or c4 = "978451" Then
KeyPress "Z", 1
r = r + 1
End If
Delay 500
Wend

//如果找不到图,可以在找图命令里插入一些信息提示命令来知道脚本运行到哪一步

回答2:

KeyPress z 改KeyPress "Z " 13