按键精灵找图(多图)
如题.我想在游戏上找4张图(同一位置940,36,1010,49)当找到任意一张图则鼠标移动到某点单击一次该如何写(注:直接按键精灵写法,不用插件)例如FindPic94...
如题.我想在游戏上找4张图(同一位置940,36,1010,49)
当找到任意一张图则鼠标移动到某点单击一次该如何写
(注:直接按键精灵写法,不用插件)
例如
FindPic 940,36,1010,49,"Attachment:\风.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 940, 36
Delay 100
LeftClick 1
Delay 100
End If
FindPic 940,36,1010,49,"Attachment:\土.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 940, 36
Delay 100
LeftClick 1
Delay 100
End If
FindPic 940,36,1010,49,"Attachment:\火.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 940, 36
Delay 100
LeftClick 1
Delay 100
End If
FindPic 940,36,1010,49,"Attachment:\水.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 940, 36
Delay 100
LeftClick 1
Delay 100
End If
(如上文如何简化) 展开
当找到任意一张图则鼠标移动到某点单击一次该如何写
(注:直接按键精灵写法,不用插件)
例如
FindPic 940,36,1010,49,"Attachment:\风.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 940, 36
Delay 100
LeftClick 1
Delay 100
End If
FindPic 940,36,1010,49,"Attachment:\土.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 940, 36
Delay 100
LeftClick 1
Delay 100
End If
FindPic 940,36,1010,49,"Attachment:\火.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 940, 36
Delay 100
LeftClick 1
Delay 100
End If
FindPic 940,36,1010,49,"Attachment:\水.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 940, 36
Delay 100
LeftClick 1
Delay 100
End If
(如上文如何简化) 展开
展开全部
Dim MyPic(3)
MyPic(0)="风.bmp"
MyPic(1)="土.bmp"
MyPic(2)="火.bmp"
MyPic(3)="水.bmp"
For i=0 To 3
FindPic 940,36,1010,49,"Attachment:\"&MyPic(i),0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 940, 36
Delay 100
LeftClick 1
Delay 100
End If
Next
最好还是使用大漠插件,你别以为用插件麻烦,大漠插件比按键精灵自带插件函数强大多了,大漠插件找多图不但简洁方便,而且速度快,效率高,这不是按键精灵函数能比拟的。
MyPic(0)="风.bmp"
MyPic(1)="土.bmp"
MyPic(2)="火.bmp"
MyPic(3)="水.bmp"
For i=0 To 3
FindPic 940,36,1010,49,"Attachment:\"&MyPic(i),0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
MoveTo 940, 36
Delay 100
LeftClick 1
Delay 100
End If
Next
最好还是使用大漠插件,你别以为用插件麻烦,大漠插件比按键精灵自带插件函数强大多了,大漠插件找多图不但简洁方便,而且速度快,效率高,这不是按键精灵函数能比拟的。
追问
谢谢了..测试了可以用
(主要是我到现在还没搞懂插件怎么用- - !)
能不能问下大漠插件在哪下载啊。自己去找的怕捆绑...
谢谢啊大漠我下好了明天去学
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |