按键精灵的抓图功能里,想要用抓图功能将截取的3个图片依次点击,请问该如何编程?
FindPic0,0,1024,768,"D:\1.bmp",0.9,intX,intYIfintX>0AndintY>0ThenMoveTointX,intYLeftC...
FindPic 0,0,1024,768,"D:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
LeftClick 1
Delay 1000
FindPic 0,0,1024,768,"D:\2.bmp",0.9,intX,intY
if intX > 0 and intY > 0 then
MoveTo intX, intY
LeftClick 1
Delay 1000
FindPic 0,0,1024,768,"D:\3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
LeftClick 1
End If
我知道将3个叠加起来的格式肯定是不对的,那么请问该如何修改呢?请大神们赐教。 展开
If intX > 0 And intY > 0 Then
MoveTo intX, intY
LeftClick 1
Delay 1000
FindPic 0,0,1024,768,"D:\2.bmp",0.9,intX,intY
if intX > 0 and intY > 0 then
MoveTo intX, intY
LeftClick 1
Delay 1000
FindPic 0,0,1024,768,"D:\3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
LeftClick 1
End If
我知道将3个叠加起来的格式肯定是不对的,那么请问该如何修改呢?请大神们赐教。 展开
2个回答
展开全部
Dim intX, intY,a
a=1
Do
Delay 100
If a = 1 Then
FindPic 0, 0, 0, 0, "Attachment:图1.png","000000",0,0.9, intX, intY
If intX >-1 then
TracePrint "找到啦,坐标是"&intX&","&intY
Tap intX,intY
a=2
Else
TracePrint "没找到"
End If
End If
If a = 2 Then
FindPic 0, 0, 0, 0, "Attachment:图2.png","000000",0, 0.9, intX, intY
If intX >-1 then
TracePrint "找到啦,坐标是"&intX&","&intY
Tap intX,intY
a=3
Else
TracePrint "没找到"
End If
End If
If a = 3 Then
FindPic 0, 0, 0, 0, "Attachment:图3.png","000000",0, 0.9, intX, intY
If intX >-1 then
TracePrint "找到啦,坐标是"&intX&","&intY
Tap intX,intY
a=4
Else
TracePrint "没找到"
End If
End If
If a = 4 Then
FindPic 0, 0, 0, 0, "Attachment:图4.png","000000",0, 0.9, intX, intY
If intX >-1 then
TracePrint "找到啦,坐标是"&intX&","&intY
Tap intX,intY
a=5
Else
TracePrint "没找到"
End If
End If
If a = 5 Then
FindPic 0, 0, 0, 0, "Attachment:图5.png","000000",0, 0.9, intX, intY
If intX >-1 then
TracePrint "找到啦,坐标是"&intX&","&intY
Tap intX,intY
a=1
Else
TracePrint "没找到"
End If
End If
Loop
自己替换下5个图 记得放附件
给你做个参考 以前帮别人写的
这个是安卓版本写法PC按键精灵自己改下
a=1
Do
Delay 100
If a = 1 Then
FindPic 0, 0, 0, 0, "Attachment:图1.png","000000",0,0.9, intX, intY
If intX >-1 then
TracePrint "找到啦,坐标是"&intX&","&intY
Tap intX,intY
a=2
Else
TracePrint "没找到"
End If
End If
If a = 2 Then
FindPic 0, 0, 0, 0, "Attachment:图2.png","000000",0, 0.9, intX, intY
If intX >-1 then
TracePrint "找到啦,坐标是"&intX&","&intY
Tap intX,intY
a=3
Else
TracePrint "没找到"
End If
End If
If a = 3 Then
FindPic 0, 0, 0, 0, "Attachment:图3.png","000000",0, 0.9, intX, intY
If intX >-1 then
TracePrint "找到啦,坐标是"&intX&","&intY
Tap intX,intY
a=4
Else
TracePrint "没找到"
End If
End If
If a = 4 Then
FindPic 0, 0, 0, 0, "Attachment:图4.png","000000",0, 0.9, intX, intY
If intX >-1 then
TracePrint "找到啦,坐标是"&intX&","&intY
Tap intX,intY
a=5
Else
TracePrint "没找到"
End If
End If
If a = 5 Then
FindPic 0, 0, 0, 0, "Attachment:图5.png","000000",0, 0.9, intX, intY
If intX >-1 then
TracePrint "找到啦,坐标是"&intX&","&intY
Tap intX,intY
a=1
Else
TracePrint "没找到"
End If
End If
Loop
自己替换下5个图 记得放附件
给你做个参考 以前帮别人写的
这个是安卓版本写法PC按键精灵自己改下
AiPPT
2024-09-19 广告
2024-09-19 广告
随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图...
点击进入详情页
本回答由AiPPT提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询