按键精灵怎么同时执行多个判断语句?我要这些语句一起执行。并循环。求高手教

IfColor1168,331,"954C03",0ThenKeyPress"O",1EndIfIfColor625,119,"954C03",0ThenKeyPress... IfColor 1168,331,"954C03",0 Then
KeyPress "O", 1
End If
IfColor 625,119,"954C03",0 Then
KeyPress "K", 1

End If

IfColor 130,190,"954C03",0 Then
KeyPress "A", 1
End If
IfColor 133,257,"954C03",0 Then
KeyPress "Z", 1

End If
展开
 我来答
hx339
2013-06-22 · 超过14用户采纳过TA的回答
知道答主
回答量:85
采纳率:0%
帮助的人:45万
展开全部
DimEnv 线程ID1, 线程ID2,线程ID3,线程ID4
线程ID1 = BeginThread(z1)
线程ID2 = BeginThread(z2)
线程ID3 = BeginThread(z3)
线程ID4 = BeginThread(z4)
Sub z1()
IfColor 1168,331,"954C03",0 Then
KeyPress "O", 1
End If
End Sub
Sub z2()
IfColor 625,119,"954C03",0 Then
KeyPress "K", 1
End If
End Sub
Sub z3()
IfColor 130,190,"954C03",0 Then
KeyPress "A", 1
End If
End Sub
Sub z4()
IfColor 133,257,"954C03",0 Then
KeyPress "Z", 1
End If
End Sub
试试这个
追问
不行。而且屏幕一直闪烁.
追答
DimEnv 线程ID1, 线程ID2,线程ID3,线程ID4
线程ID1 = BeginThread(z1)
线程ID2 = BeginThread(z2)
线程ID3 = BeginThread(z3)
线程ID4 = BeginThread(z4)
Sub z1()
While 1=1
IfColor 1168,331,"954C03",0 Then
KeyPress "O", 1
End If
Wend
End Sub
Sub z2()
While 1=1
IfColor 625,119,"954C03",0 Then
KeyPress "K", 1
End If
Wend
End Sub
Sub z3()
While 1=1
IfColor 130,190,"954C03",0 Then
KeyPress "A", 1
End If
Wend
End Sub
Sub z4()
While 1=1
IfColor 133,257,"954C03",0 Then
KeyPress "Z", 1
End If
Wend
End Sub
你要的是循环脚本
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式