
我用按键精灵写了一个游戏脚本为什么需要鼠标移动到图标才会执行下一步?
这是我的源码FindPic0,0,1024,768,"Attachment:\开始.bmp",0.9,intX,intYIfintX>0AndintY>0ThenLeft...
这是我的源码
FindPic 0,0,1024,768,"Attachment:\开始.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
LeftClick 1
Delay 1000
End If
FindPic 0,0,1024,768,"Attachment:\不抢.bmp",0.9,intX,intY
//以下是条件判断;如果返回的坐标大于0,那么就说明找到了。
If intX > 0 And intY > 0 Then
//在这里可以添加找到坐标后,需要做的处理。
LeftClick 1
Delay 1000
End If
FindPic 0,0,1024,768,"Attachment:\下注金额.bmp",0.9,intX,intY
//以下是条件判断;如果返回的坐标大于0,那么就说明找到了。
If intX > 0 And intY > 0 Then
LeftClick 1
Delay 1000
End If
FindPic 0,0,1024,768,"Attachment:\提示.bmp",0.9,intX,intY
//以下是条件判断;如果返回的坐标大于0,那么就说明找到了。
If intX > 0 And intY > 0 Then
//在这里可以添加找到坐标后,需要做的处理。
LeftClick 1
Delay 1000
End If
FindPic 0,0,1024,768,"Attachment:\亮牌.bmp",0.9,intX,intY
//以下是条件判断;如果返回的坐标大于0,那么就说明找到了。
If intX > 0 And intY > 0 Then
//在这里可以添加找到坐标后,需要做的处理。
LeftClick 1
Delay 1000
End If
FindPic 0,0,1024,768,"Attachment:\开始1.bmp",0.9,intX,intY
//以下是条件判断;如果返回的坐标大于0,那么就说明找到了。
If intX > 0 And intY > 0 Then
//在这里可以添加找到坐标后,需要做的处理。
LeftClick 1
Delay 1000
End If 展开
FindPic 0,0,1024,768,"Attachment:\开始.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
LeftClick 1
Delay 1000
End If
FindPic 0,0,1024,768,"Attachment:\不抢.bmp",0.9,intX,intY
//以下是条件判断;如果返回的坐标大于0,那么就说明找到了。
If intX > 0 And intY > 0 Then
//在这里可以添加找到坐标后,需要做的处理。
LeftClick 1
Delay 1000
End If
FindPic 0,0,1024,768,"Attachment:\下注金额.bmp",0.9,intX,intY
//以下是条件判断;如果返回的坐标大于0,那么就说明找到了。
If intX > 0 And intY > 0 Then
LeftClick 1
Delay 1000
End If
FindPic 0,0,1024,768,"Attachment:\提示.bmp",0.9,intX,intY
//以下是条件判断;如果返回的坐标大于0,那么就说明找到了。
If intX > 0 And intY > 0 Then
//在这里可以添加找到坐标后,需要做的处理。
LeftClick 1
Delay 1000
End If
FindPic 0,0,1024,768,"Attachment:\亮牌.bmp",0.9,intX,intY
//以下是条件判断;如果返回的坐标大于0,那么就说明找到了。
If intX > 0 And intY > 0 Then
//在这里可以添加找到坐标后,需要做的处理。
LeftClick 1
Delay 1000
End If
FindPic 0,0,1024,768,"Attachment:\开始1.bmp",0.9,intX,intY
//以下是条件判断;如果返回的坐标大于0,那么就说明找到了。
If intX > 0 And intY > 0 Then
//在这里可以添加找到坐标后,需要做的处理。
LeftClick 1
Delay 1000
End If 展开
1个回答
展开全部
MoveTo intX, intY
每句feltclick 1 前加上 它就自动鼠标移动到找到的图片坐标了 如果点不着 就做相对偏移或者直接用绝对坐标系。
每句feltclick 1 前加上 它就自动鼠标移动到找到的图片坐标了 如果点不着 就做相对偏移或者直接用绝对坐标系。
更多追问追答
追问
相对偏移要怎么写呢?指点下!
相对偏移要怎么写呢?指点下!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询