帮我看看这个按键精灵语句哪出问题了
Hwnd=Plugin.Window.MousePoint()Delay80CallPlugin.Bkgnd.LeftClick(Hwnd,204,532)Delay80...
Hwnd = Plugin.Window.MousePoint()
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 673, 472)
Delay 200
Call Plugin.Bkgnd.LeftClick(Hwnd, 595, 469)
Delay 200
Rem 等待色彩符合
IfColor 983, 323,E7C4AA,0
LeftClick 1
Else
Goto 等待色彩符合
EndIf
Delay 200
Call Plugin.Bkgnd.LeftClick(Hwnd, 791, 474)
Delay 200
Call Plugin.Bkgnd.LeftClick(Hwnd, 295, 502)
Delay 200
Call Plugin.Bkgnd.LeftClick(Hwnd, 449, 358)
Delay 200
Rem 等待色彩符合
IfColor 983, 323,E7C4AA,0
LeftClick 1
Else
Goto 等待色彩符合
EndIf
Delay 200
Call Plugin.Bkgnd.LeftClick(Hwnd, 631, 501)
Delay 200
提示语句错误,无法运行,问下高手这个语句怎么修改?插入以下这段是因为网页游戏每过一段时间就会弹出小窗口广告挡住按键图标,所以需要颜色来识别下。
Rem 等待色彩符合
IfColor 983, 323,E7C4AA,0
LeftClick 1
Else
Goto 等待色彩符合
EndIf 展开
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 673, 472)
Delay 200
Call Plugin.Bkgnd.LeftClick(Hwnd, 595, 469)
Delay 200
Rem 等待色彩符合
IfColor 983, 323,E7C4AA,0
LeftClick 1
Else
Goto 等待色彩符合
EndIf
Delay 200
Call Plugin.Bkgnd.LeftClick(Hwnd, 791, 474)
Delay 200
Call Plugin.Bkgnd.LeftClick(Hwnd, 295, 502)
Delay 200
Call Plugin.Bkgnd.LeftClick(Hwnd, 449, 358)
Delay 200
Rem 等待色彩符合
IfColor 983, 323,E7C4AA,0
LeftClick 1
Else
Goto 等待色彩符合
EndIf
Delay 200
Call Plugin.Bkgnd.LeftClick(Hwnd, 631, 501)
Delay 200
提示语句错误,无法运行,问下高手这个语句怎么修改?插入以下这段是因为网页游戏每过一段时间就会弹出小窗口广告挡住按键图标,所以需要颜色来识别下。
Rem 等待色彩符合
IfColor 983, 323,E7C4AA,0
LeftClick 1
Else
Goto 等待色彩符合
EndIf 展开
3个回答
展开全部
首先 这些代码可以减少点
Hwnd = Plugin.Window.MousePoint()
for 19
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
next
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 673, 472)
Delay 200
Call Plugin.Bkgnd.LeftClick(Hwnd, 595, 469)
Delay 200
上面的代码应该没有问题 问题可能出在找色代码 缺少语句 IfColor 983, 323, E7C4AA, 0 Then 那么没有
Hwnd = Plugin.Window.MousePoint()
for 19
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 204, 532)
next
Delay 80
Call Plugin.Bkgnd.LeftClick(Hwnd, 673, 472)
Delay 200
Call Plugin.Bkgnd.LeftClick(Hwnd, 595, 469)
Delay 200
上面的代码应该没有问题 问题可能出在找色代码 缺少语句 IfColor 983, 323, E7C4AA, 0 Then 那么没有
更多追问追答
追问
其实上面语句是可以用的,只是我另外插上了这段 :
Rem 等待色彩符合
IfColor 983, 323,E7C4AA,0
LeftClick 1
Else
Goto 等待色彩符合
EndIf
它就不能用了
追答
我不是说了吗 在你 IfColor 983, 323,E7C4AA,0 这句后面加哥 Then 而且你颜色参数也少了 双引号 后面的参数也太绝对了 吧整句改成这样试试 IfColor 983, 323, "E7C4AA", 2 Then
展开全部
把你标记的地方的名字改成字母应该就不会报错了。比如改成START
更多追问追答
追问
还是会报错
追答
是不是两次REM标记时起的名字一样呢
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
IfColor 983, 323,E7C4AA,0 then
更多追问追答
追问
不管用
追答
把2个rem名称改下
goto相应的改下。这样就没问题。了。
我测试了。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询