按键精灵 两个ifcolor如何并列
我的问题是,判定两个点的颜色,每个点颜色变化以后相应执行不同命令。(其实俩命令一样,不过我不会,所以就分别针对两个窗口做了2个ifcolor语句),但是发现两个条件,必需...
我的问题是,判定两个点的颜色,每个点颜色变化以后相应执行不同命令。(其实俩命令一样,不过我不会,所以就分别针对两个窗口做了2个ifcolor语句),但是发现两个条件,必需第一个执行以后,第二个才会执行,如何让两个并列呢,就是无论哪个颜色变了都能首先执行,不用等上一个变了才一起执行。
第一个
IfColor 44,72,"18CF00",1 Then
MoveTo 46, 257
Delay 1000
LeftClick 1
Delay 1000
MoveTo 111, 292
Delay 1000
LeftClick 1
Delay 1000
MoveTo 109, 276
Delay 1000
LeftClick 1
Delay 1000
MoveTo 299, 211
Delay 1000
LeftClick 1
Delay 1000
MoveTo 299, 207
Delay 1000
LeftClick 1
Delay 1000
MoveTo 46, 257
Delay 1000
LeftClick 1
Delay 1000
MoveTo 109, 276
Delay 1000
LeftClick 1
Delay 1000
LeftClick 1
Delay 1000
End If
第二个
IfColor 691,71,"18CF00",1 Then
MoveTo 692, 260
Delay 1000
LeftClick 1
Delay 1000
MoveTo 754, 292
Delay 1000
LeftClick 1
Delay 1000
MoveTo 762, 278
Delay 1000
LeftClick 1
Delay 1000
MoveTo 943, 211
Delay 1000
LeftClick 1
Delay 1000
MoveTo 921, 204
Delay 1000
LeftClick 1
Delay 1000
MoveTo 692, 260
Delay 1000
LeftClick 1
Delay 1000
MoveTo 761, 276
Delay 1000
LeftClick 1
Delay 1000
LeftClick 1
Delay 1000
End If
这号没分了,不好意思,如果有高手能解答,我刷分给您补上 展开
第一个
IfColor 44,72,"18CF00",1 Then
MoveTo 46, 257
Delay 1000
LeftClick 1
Delay 1000
MoveTo 111, 292
Delay 1000
LeftClick 1
Delay 1000
MoveTo 109, 276
Delay 1000
LeftClick 1
Delay 1000
MoveTo 299, 211
Delay 1000
LeftClick 1
Delay 1000
MoveTo 299, 207
Delay 1000
LeftClick 1
Delay 1000
MoveTo 46, 257
Delay 1000
LeftClick 1
Delay 1000
MoveTo 109, 276
Delay 1000
LeftClick 1
Delay 1000
LeftClick 1
Delay 1000
End If
第二个
IfColor 691,71,"18CF00",1 Then
MoveTo 692, 260
Delay 1000
LeftClick 1
Delay 1000
MoveTo 754, 292
Delay 1000
LeftClick 1
Delay 1000
MoveTo 762, 278
Delay 1000
LeftClick 1
Delay 1000
MoveTo 943, 211
Delay 1000
LeftClick 1
Delay 1000
MoveTo 921, 204
Delay 1000
LeftClick 1
Delay 1000
MoveTo 692, 260
Delay 1000
LeftClick 1
Delay 1000
MoveTo 761, 276
Delay 1000
LeftClick 1
Delay 1000
LeftClick 1
Delay 1000
End If
这号没分了,不好意思,如果有高手能解答,我刷分给您补上 展开
展开全部
do
Delay 1000
IfColor 44,72,"18CF00",1 Then
call 第一个
IfColor 691,71,"18CF00",1 Then
call 第二个
loop
sub 第一个
MoveTo 46, 257
Delay 1000
LeftClick 1
Delay 1000
MoveTo 111, 292
Delay 1000
LeftClick 1
Delay 1000
MoveTo 109, 276
Delay 1000
LeftClick 1
Delay 1000
MoveTo 299, 211
Delay 1000
LeftClick 1
Delay 1000
MoveTo 299, 207
Delay 1000
LeftClick 1
Delay 1000
MoveTo 46, 257
Delay 1000
LeftClick 1
Delay 1000
MoveTo 109, 276
Delay 1000
LeftClick 1
Delay 1000
LeftClick 1
Delay 1000
End If
end sub
sub第二个
MoveTo 692, 260
Delay 1000
LeftClick 1
Delay 1000
MoveTo 754, 292
Delay 1000
LeftClick 1
Delay 1000
MoveTo 762, 278
Delay 1000
LeftClick 1
Delay 1000
MoveTo 943, 211
Delay 1000
LeftClick 1
Delay 1000
MoveTo 921, 204
Delay 1000
LeftClick 1
Delay 1000
MoveTo 692, 260
Delay 1000
LeftClick 1
Delay 1000
MoveTo 761, 276
Delay 1000
LeftClick 1
Delay 1000
LeftClick 1
Delay 1000
End If
end sub
Delay 1000
IfColor 44,72,"18CF00",1 Then
call 第一个
IfColor 691,71,"18CF00",1 Then
call 第二个
loop
sub 第一个
MoveTo 46, 257
Delay 1000
LeftClick 1
Delay 1000
MoveTo 111, 292
Delay 1000
LeftClick 1
Delay 1000
MoveTo 109, 276
Delay 1000
LeftClick 1
Delay 1000
MoveTo 299, 211
Delay 1000
LeftClick 1
Delay 1000
MoveTo 299, 207
Delay 1000
LeftClick 1
Delay 1000
MoveTo 46, 257
Delay 1000
LeftClick 1
Delay 1000
MoveTo 109, 276
Delay 1000
LeftClick 1
Delay 1000
LeftClick 1
Delay 1000
End If
end sub
sub第二个
MoveTo 692, 260
Delay 1000
LeftClick 1
Delay 1000
MoveTo 754, 292
Delay 1000
LeftClick 1
Delay 1000
MoveTo 762, 278
Delay 1000
LeftClick 1
Delay 1000
MoveTo 943, 211
Delay 1000
LeftClick 1
Delay 1000
MoveTo 921, 204
Delay 1000
LeftClick 1
Delay 1000
MoveTo 692, 260
Delay 1000
LeftClick 1
Delay 1000
MoveTo 761, 276
Delay 1000
LeftClick 1
Delay 1000
LeftClick 1
Delay 1000
End If
end sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询