按键精灵,求教大神,循环鼠标操作,找到图后跳出循环执行找到图后的操作,麻烦帮我看问题出在哪!纯新手
doMoveTo765,608Delay200LeftClick1Delay30000Loop//循环这段鼠标操作FindPic0,0,1024,768,"Attachm...
do
MoveTo 765, 608
Delay 200
LeftClick 1
Delay 30000
Loop //循环这段鼠标操作
FindPic 0,0,1024,768,"Attachment:\绿色刺探.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 1000 //找到图后跳出上面的鼠标动作并执行下面的鼠标操作
MoveTo 880, 608
Delay 300
LeftClick 1
Delay 300
KeyPress "Enter", 1
Delay 2000
KeyPress "F9", 1
End If 展开
MoveTo 765, 608
Delay 200
LeftClick 1
Delay 30000
Loop //循环这段鼠标操作
FindPic 0,0,1024,768,"Attachment:\绿色刺探.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 1000 //找到图后跳出上面的鼠标动作并执行下面的鼠标操作
MoveTo 880, 608
Delay 300
LeftClick 1
Delay 300
KeyPress "Enter", 1
Delay 2000
KeyPress "F9", 1
End If 展开
1个回答
展开全部
do
MoveTo 765, 608
Delay 200
LeftClick 1
Delay 1000//延迟一秒后判断
FindPic 0,0,1024,768,"Attachment:\绿色刺探.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then //如果找到图就执行以下操作
Delay 1000
MoveTo 880, 608
Delay 300
LeftClick 1
Delay 300
KeyPress "Enter", 1
Delay 2000
KeyPress "F9", 1
Exit Do//跳出do循环
End If
Delay 30000//等待30秒后进行下轮点击
Loop //循环这段鼠标操作
仔细看看 祝你成功
MoveTo 765, 608
Delay 200
LeftClick 1
Delay 1000//延迟一秒后判断
FindPic 0,0,1024,768,"Attachment:\绿色刺探.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then //如果找到图就执行以下操作
Delay 1000
MoveTo 880, 608
Delay 300
LeftClick 1
Delay 300
KeyPress "Enter", 1
Delay 2000
KeyPress "F9", 1
Exit Do//跳出do循环
End If
Delay 30000//等待30秒后进行下轮点击
Loop //循环这段鼠标操作
仔细看看 祝你成功
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |